Mercurial > projects > qtd
view mini/test1/main.d @ 33:cf8a415f3f32
gui package is fully wrapped now. lots of fixes in the generator
author | eldar |
---|---|
date | Sat, 16 May 2009 17:12:06 +0000 |
parents | e78566595089 |
children | 7dd099050621 |
line wrap: on
line source
import qt.core.QCoreApplication; import tango.io.Stdout; int main(string[] args) { auto app = new QCoreApplication(args); auto parent = new QObject(); parent.setObjectName("papa"); auto child1 = new QObject(parent); child1.setObjectName("child1"); auto child2 = new QObject(parent); child2.setObjectName("child2"); auto child3 = new QObject(parent); child3.setObjectName("child3"); auto cd = parent.children; Stdout(app.arguments).newline; foreach(child; cd) Stdout(child.objectName).newline; app.setLibraryPaths(["freakin", "bloody", "awesome!"]); Stdout(app.libraryPaths).newline; return 5; // return app.exec(); }