Can I use a QtApplication in a Windows service, or does it have to be a QCoreApplication?
Can I use a QtApplication in a Windows service, or does it have to be a QCoreApplication?
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)
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?
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.
TheGrimace (5th October 2007)
Bookmarks