<div dir="ltr">I'm using the binding, but it still does not answer the question (that I already found the answer on my own, but I do not like it).<br>In order to work with QT widgets, you must initialize it also by using QApplication and it's family... Why ? well it's the same as TApplication in Lazarus/Delphi, it handles all of the events etc.. <br>
If I'm writing an application that uses TCustomApplication, the "run" (DoRun for your code) procedure does a loop for you, so you must Terminate it after you make your code (unless you need it to continue running).<br>
QApplication.exec, does the same thing, and it is mandatory, so you must use signals and slots using QObject.connect in order to make sure it will break it's loop.<br><br>Ido<br clear="all"><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br>
<br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 7:46 AM, leledumbo <span dir="ltr"><<a href="mailto:leledumbo_cool@yahoo.co.id">leledumbo_cool@yahoo.co.id</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
FPC already has QT binding, just use it:<br>
<a href="http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html" target="_blank">http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html</a><br>
<font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/TCustomApplication-and-QApplication-tp26248446p26261584.html" target="_blank">http://old.nabble.com/TCustomApplication-and-QApplication-tp26248446p26261584.html</a><br>
Sent from the Free Pascal - General mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>