Wt and Qt mixed code
Added by Marco Trapanese almost 13 years ago
After several years of Qt programming I have a lot of my functions about serials communication and other stuff.
It would be nice I can reuse them in a Wt application. For example to avoid to rewrite from scratch the serial port management.
Qt has its own event loop (QApplication): does it interfere with the Wt event loop (WApplication)? May I start both in the main() ?
The next goal is to share the variables between pieces of code in Wt and in Qt. Is it possible? Is there any example on this?
Otherwise, is there a serial library written in Wt? I'm talking about the signal/slot implementation to receive easily the data packet, without puzzling over the raw stream.
Thanks!
Marco
Replies (1)
RE: Wt and Qt mixed code - Added by Wim Dumon almost 13 years ago
Hello Marco,
Did you look at the wtwithqt example, in the examples dir of the Wt sources? It contains some notes about mixing Wt and Qt.
Regards,
Wim.