Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
501 B

using System;
using System.Diagnostics;
using Qt.Gui;
using Qt.Gui.Qt;
using Mono.Cxxi;
namespace QtTest {
class MainClass {
public static void Main (string[] args)
{
using (QApplication app = new QApplication ()) {
using (QPushButton hello = new QPushButton ("Hello world!")) {
hello.Resize (200, 30);
QObject.Connect (hello, "2clicked()", app, "1aboutQt()", ConnectionType.AutoConnection);
hello.SetVisible (true);
QApplication.Exec ();
}
}
}
}
}