blob: 3dc075b1f4b5647566c5c306eb926e9abf895a75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Qt# tutorial 1
// Based on the Qt tutorial
// Implemented by Marcus Urban
using System;
using Qt;
public class Example {
public static int Main (String[] args)
{
QApplication a = new QApplication (args);
QPushButton hello = new QPushButton ("Hello world!", null);
// In C++, the second parameter is 0 (null pointer)
hello.Resize (100, 30);
a.SetMainWidget (hello);
hello.Show ();
return a.Exec ();
}
}
|