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