Integrate C++ application in Qt application
-
HI all
I am new to Qt qnd wish to integrate Qt with a native C++ application of my own.Could you please tell me how to start the connection between the two? :)thanks in advance!!
Edit: split off from "this":http://developer.qt.nokia.com/forums/viewthread/593/ thread, as it seems completely unrelated; Andre
-
I had to do this at work. There is a swarm of available options. The main app is a Google-like X11-based system. I'm in charge of the separate touch-screen-based Qt GUI.
Ideas:
- X11 event loop can be replaced with qt's own one: lenghty, effective.
- Use shared memory between different applications: upload a class full of basic types, then download it on the other end.
- Use TCP/UDP & communicate via ethernet: super-duper-extensive piece of code, but hey, it does the trick!
- Use threads: one for your c++ app, one for the new qt based app. It's OK, but quite unstable (i.e.: X11 crashes when running for 40+ hrs)
Well, that's as far as I can imagine with no additional data :). Post again or PM!
-
Hi!
If you are new to Qt, you can see an example (2) in this page : http://www.iissam.com/sources/codes.php
If you understand french : http://www.siteduzero.com/tutoriel-3-11406-programmez-avec-le-langage-c.htmlGood Luck :)
-
I had a native C++ simulation classes and I wanted to create an OpenGL Simulation. I just learned how to create a GUI with Qt, and had to create object instances of the classes I created independent from Qt in my program. And that was it!!!