1
|
1 import qt.core.QCoreApplication;
|
|
2
|
188
|
3 version(Tango) {} 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;
|
188
|
19
|
|
20 writeln(app.arguments);
|
1
|
21 foreach(child; cd)
|
188
|
22 writeln(child.objectName);
|
1
|
23
|
|
24 app.setLibraryPaths(["freakin", "bloody", "awesome!"]);
|
188
|
25
|
|
26 writeln(app.libraryPaths);
|
1
|
27
|
|
28 return 5;
|
|
29 // return app.exec();
|
|
30 }
|