Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Creating Qt GUI for existing VS Solution
Forum Updated to NodeBB v4.3 + New Features

Creating Qt GUI for existing VS Solution

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 226 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AathakAA Offline
    AathakAA Offline
    AathakA
    wrote on last edited by
    #1

    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!

    Pl45m4P 1 Reply Last reply
    0
    • AathakAA AathakA

      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!

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @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:

      • https://doc.qt.io/qtvstools/index.html

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved