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

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 last edited by pauliedunne
    #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

    kshegunovK 1 Reply Last reply
    0
    • P pauliedunne

      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

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on 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 last edited by pauliedunne
        #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

        kshegunovK 1 Reply Last reply
        0
        • P pauliedunne

          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

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on 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 last edited by
            #5

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

            kshegunovK 1 Reply Last reply
            0
            • P pauliedunne

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

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on 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

              • Login

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