Creating Qt GUI for existing VS Solution
-
Hi,
I have a Visual Studio solution with two projects: the first has a bunch of .cpp and .h files (uses just one external library statically linked), and the second is a wizard installer.
Right now it is a console application, there is a while (true) loop that takes in inputs from the user, runs some calculations (and some I/O with files), and asks for new inputs again.
I find the console really limiting and unsafe, and I would like to have a proper GUI for this application.
I found other questions on this topic but I still have some doubts...
- Do I need to start from scratch and copy the code there?
- I saw it's suggested to use Qt Creator, but how more difficult would it be to continue developing on VS?
Other suggestions are welcomed,
Thank you! -
Hi,
I have a Visual Studio solution with two projects: the first has a bunch of .cpp and .h files (uses just one external library statically linked), and the second is a wizard installer.
Right now it is a console application, there is a while (true) loop that takes in inputs from the user, runs some calculations (and some I/O with files), and asks for new inputs again.
I find the console really limiting and unsafe, and I would like to have a proper GUI for this application.
I found other questions on this topic but I still have some doubts...
- Do I need to start from scratch and copy the code there?
- I saw it's suggested to use Qt Creator, but how more difficult would it be to continue developing on VS?
Other suggestions are welcomed,
Thank you!@AathakA said in Creating Qt GUI for existing VS Solution:
Do I need to start from scratch and copy the code there?
You can copy parts of you code, but you definitely have to get rid of your
while(true)
loop, since it blocks the Qt event loop system.I saw it's suggested to use Qt Creator, but how more difficult would it be to continue developing on VS?
It's a matter of taste... QtCreator works well with Qt, but is not THE best IDE... VS is more powerful, I would say.
There are a bunch of tools for VS which can make your Qt + VS work better: