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.
Ido http://ik.homelinux.org/ On Mon, Nov 9, 2009 at 7:46 AM, leledumbo <leledumbo_c...@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@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal