1
|
1 import qt.core.QCoreApplication;
|
|
2
|
270
|
3 version(Tango) { import tango.io.Stdout; } else { import std.stdio; }
|
1
|
4
|
|
5 int main(string[] args)
|
|
6 {
|
|
7 auto app = new QCoreApplication(args);
|
|
8
|
|
9 auto parent = new QObject();
|
|
10 parent.setObjectName("papa");
|
|
11 auto child1 = new QObject(parent);
|
|
12 child1.setObjectName("child1");
|
|
13 auto child2 = new QObject(parent);
|
|
14 child2.setObjectName("child2");
|
|
15 auto child3 = new QObject(parent);
|
|
16 child3.setObjectName("child3");
|
|
17
|
|
18 auto cd = parent.children;
|
270
|
19 Stdout(parent.children.length).newline;
|
|
20
|
|
21 Stdout(app.arguments).newline;
|
1
|
22 foreach(child; cd)
|
270
|
23 Stdout(child.objectName).newline;
|
1
|
24
|
|
25 app.setLibraryPaths(["freakin", "bloody", "awesome!"]);
|
188
|
26
|
270
|
27 Stdout(app.libraryPaths).newline;
|
1
|
28
|
|
29 return 5;
|
|
30 // return app.exec();
|
|
31 }
|