// Qt-CSharp 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 (); } }