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