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. Running a console application within an GUI application
QtWS25 Last Chance

Running a console application within an GUI application

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreatorqt5consolegui
6 Posts 2 Posters 4.4k Views
  • 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.
  • P Offline
    P Offline
    pauliedunne
    wrote on 7 Dec 2015, 13:17 last edited by pauliedunne 12 Jul 2015, 13:19
    #1

    Hello,

    I have an application which runs through a console, from here I'm making a GUI application that will allow a user to interact with the console application. How would I take the console application and run it on the GUI.

    Sample Image of GUI: https://drive.google.com/file/d/0B_XbLbbwxR4RQnFKcmY0U2RWeHc/view?usp=sharing

    The console app is written using C++/SFML

    Any help is appreciated as I'm quite new to Qt, thanks

    K 1 Reply Last reply 7 Dec 2015, 13:22
    0
    • P pauliedunne
      7 Dec 2015, 13:17

      Hello,

      I have an application which runs through a console, from here I'm making a GUI application that will allow a user to interact with the console application. How would I take the console application and run it on the GUI.

      Sample Image of GUI: https://drive.google.com/file/d/0B_XbLbbwxR4RQnFKcmY0U2RWeHc/view?usp=sharing

      The console app is written using C++/SFML

      Any help is appreciated as I'm quite new to Qt, thanks

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 7 Dec 2015, 13:22 last edited by
      #2

      @pauliedunne
      You can't directly "run it on the GUI", but you could start it from Qt, and read its output, respectively send it messages. You could use QProcess to do just that.

      Kind regards.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pauliedunne
        wrote on 7 Dec 2015, 13:56 last edited by pauliedunne 12 Jul 2015, 14:00
        #3

        Hello,

        If I'm using Qt's Widget Application, what would I place on my canvas to hold SFML or Qt Graphics code and display it in that frame (Don't know if Frame will do the job)

        Meaning, some way to display new code on the same application, and the new code will be the console application, just written for the GUI.

        Thanks

        K 1 Reply Last reply 7 Dec 2015, 14:01
        0
        • P pauliedunne
          7 Dec 2015, 13:56

          Hello,

          If I'm using Qt's Widget Application, what would I place on my canvas to hold SFML or Qt Graphics code and display it in that frame (Don't know if Frame will do the job)

          Meaning, some way to display new code on the same application, and the new code will be the console application, just written for the GUI.

          Thanks

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 7 Dec 2015, 14:01 last edited by
          #4

          @pauliedunne
          I don't know how SFML operates, so I pass there, as for Qt any text widget could be used to show the text from your console program. QTextEdit is probably your best bet.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pauliedunne
            wrote on 7 Dec 2015, 14:10 last edited by
            #5

            What about displaying the Qt Graphical Library on a Qt Widget Application?

            K 1 Reply Last reply 7 Dec 2015, 15:37
            0
            • P pauliedunne
              7 Dec 2015, 14:10

              What about displaying the Qt Graphical Library on a Qt Widget Application?

              K Offline
              K Offline
              kshegunov
              Moderators
              wrote on 7 Dec 2015, 15:37 last edited by
              #6

              I don't understand what you mean, Qt is a GUI library by design.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0

              1/6

              7 Dec 2015, 13:17

              • Login

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