Mercurial > projects > qtd
view mini/test1/main.d @ 322:7c2cf27391c4 signals
A slight change of the connect syntax. More sofisticated signals/slots lookup. Some fixes in examples.
author | eldar_ins@eldar-laptop |
---|---|
date | Sun, 27 Dec 2009 21:13:38 +0500 |
parents | 49bfc86ff583 |
children | beaf4a2974d7 |
line wrap: on
line source
import qt.core.QCoreApplication; version(Tango) { import tango.io.Stdout; } else { import std.stdio; } 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(parent.children.length).newline; 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(); }