blob: b5498d7a88248a20ac2a887d8f33dab02a83f42d (
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)
{
TTQApplication a = new TTQApplication (args);
TTQPushButton hello = new TTQPushButton ("Hello world!", null);
// In C++, the second parameter is 0 (null pointer)
hello.Resize (100, 30);
a.SetMainWidget (hello);
hello.Show ();
return a.Exec ();
}
}
|