View Full Version : QApplication as not "main object" ( window in dll )
daijvid
7th April 2011, 09:09
Hello.
I write exe without gui.
I want to write gui in dll as plugin.
Exe -> "standard main" loop.
If dll exist it load it -> show window etc.
QApplication::exec can't be run on thread, so how i can do?
high_flyer
7th April 2011, 15:51
Your application (main()) will have to have QApplication object.
Implement your GUI in a DLL, not problem with that.
daijvid
7th April 2011, 16:22
Not good. Application isn't Qt application and can't be.
high_flyer
7th April 2011, 16:27
Well, then maybe you can put your non Qt application in a QThread launched by your Qt GUI when you do use the GUI, and run it normal when you don't use the GUI.
daijvid
8th April 2011, 06:47
It is not as easy as i wanted ( my application is part of big application... many work ).
But now i think to start qtapplication as a process from my application.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.