[fpc-pascal] TCustomApplication and QApplication

ik idokan at gmail.com
Mon Nov 9 09:16:47 CET 2009

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).
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..
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).
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.


On Mon, Nov 9, 2009 at 7:46 AM, leledumbo <leledumbo_cool at yahoo.co.id>wrote:

> FPC already has QT binding, just use it:
> http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
> --
> View this message in context:
> http://old.nabble.com/TCustomApplication-and-QApplication-tp26248446p26261584.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20091109/05e2ef5c/attachment.html>

More information about the fpc-pascal mailing list