View Full Version : Windows Service
TheGrimace
5th October 2007, 18:53
Can I use a QtApplication in a Windows service, or does it have to be a QCoreApplication?
wysota
5th October 2007, 19:09
I don't see a reason why it should be forbidden, so probably you can. If it doesn't work you can surely use QCoreApplication and spawn a separate application using QApplication and communicate with it using some IPC mechanism.
TheGrimace
5th October 2007, 19:24
Thank You.
Do you see any reason that I could not load a widget using a service (even if I did not show it) Or does windows prevent the loading of the QtGUI dll?
wysota
5th October 2007, 19:46
I don't know that much about Windows architecture. It surely won't prevent loading the library itself but if services are initialized before the display system is ready, creating a QApplication object might fail. But I'm just guessing. I think you should try it and see what you get.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.