Reputation:
I'm learning c++ and QT and would like to be able to launch windows from a console application. Is this even possible?
Upvotes: 0
Views: 552
Reputation: 14951
This is possible, but I think you might be better served by separating the GUI and console portions into separate programs, and running the GUI parts from the console program. Otherwise, you will probably have to mangle one of the paradigms involved: console apps generally don't use event loops, but your GUI windows will not respond to anything unless you let Qt take over and run with its own event loop.
Upvotes: 1
Reputation: 13192
Yes, it's possible. We can't help you unless you describe what you've tried and what exactly isn't working.
Upvotes: 0
Reputation: 13238
If you are using MSVC you can try setting Subsystem->Console in Project Settings->Linker->System.
But why do you need such behaviour?
Upvotes: 0