[Qt-interest] Using Qt classes with non-Qt application

Hari Sundar hsundar at gmail.com
Wed Jan 21 17:30:10 CET 2009


Hi,

I have a legacy application that I dont have the resources (yet) to port
completely to Qt. I want to however added newer features using Qt. To this
effect I want to integrate some Qt classes within my existing non-Qt
application.

I am not using Qt for the GUI (as of now), but initial tests using some
classes from QtCore were successful. I am however stuck on how to deal with
classes that require the use of Signals and Slots. I have been able to
generate and compile the MOC files, as I use CMake for building.

However the Signals and slots dont work, which I suppose is because of there
being no Qt Application to process the message queue. The question I have is
what is the best way to acheive this ?  Can I get Signals and Slots to work
by maybe requesting Qt to process events on a regular interval ? Or is it
possible for me to handle QT signals using other mechanisms, say the
existing message queue.

Any suggestions on the best way to do this is highly appreciated.

thanks,
Hari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090121/bef29d30/attachment.html 


More information about the Qt-interest-old mailing list