Anyone working on updated Qt bindings?

MGW via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 13 10:01:37 PST 2015


This is primer program on QtE
----------------------------------------------------
import std.stdio;        // writeln
import core.runtime;     // Processing of input parameters
import std.net.curl: get;
import qte;              // work with Qt

class Exam: QMainWindow {
     this() {
		super();
	}
}
	
int main(string[] args) {
     // Test load library. '--debug' start in debug state.
     bool fDebug; foreach(arg; args) if (arg=="--debug") fDebug = 
true;
     int rez = LoadQt( dll.Core | dll.Gui | dll.QtE, fDebug); if 
(rez==1) return 1;  // Error load QtE
     QApplication app = new QApplication(&Runtime.cArgs.argc, 
Runtime.cArgs.argv, 1);
     // ----------------------------------

     Exam ex = new Exam();
     ex.show();

     // The main body of the program ..

     // ----------------------------------
     return app.exec();
}
---------------------------------------------------------

screenshot QtE on Windows and Linux
http://qte.ucoz.ru/QtE_win_2.png
http://qte.ucoz.ru/QtE_linux_2.png


More information about the Digitalmars-d mailing list