Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Running a console application within an GUI application

    General and Desktop
    qtcreator qt5 console gui
    2
    6
    3892
    Loading More Posts
    • 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
      pauliedunne last edited by 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

      kshegunov 1 Reply Last reply Reply Quote 0
      • kshegunov
        kshegunov Moderators @pauliedunne last edited by

        @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 Reply Quote 0
        • P
          pauliedunne last edited by 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

          kshegunov 1 Reply Last reply Reply Quote 0
          • kshegunov
            kshegunov Moderators @pauliedunne last edited by

            @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 Reply Quote 0
            • P
              pauliedunne last edited by

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

              kshegunov 1 Reply Last reply Reply Quote 0
              • kshegunov
                kshegunov Moderators @pauliedunne last edited by

                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 Reply Quote 0
                • First post
                  Last post