high_flyer,
Sorry for not being clear. Thanks for your initial answer. What I mean by "work" is that will the widgets still at least draw on the screen even if Qt's main event loop is disabled?
My reason for doing this is that I have this existing c++ program that can already act as an event loop. It receives system-wide and application-wide events and manages them. I would like to have a GUI for this c++ program and I chose Qt framework to build this. So I was planning to reuse this c++ program's event loop and just use Qt for drawing purposes only.
I've an experience in creating customized GUI frameworks and I'm not confident in doing the above method(disabling the event loop of Qt). Because in my experience, at least the drawing of the widgets are sometimes driven by timers.
If I'm not wrong, if I will not use Qt's main event loop, then its like reinventing it. Again my question is, will the widgets still work even if its main event loop is disabled? I've tried creating a simple hello world program and creating a simple QDialog with an endless loop that acts as the main loop of the main thread. Unfortunately, Qt requires a QApplication to be created and its "exec" function to be called.![]()
Bookmarks