[fpc-pascal] TCustomApplication and QApplication
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
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:
> View this message in context:
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal