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. Run OS console instead of "Application Output" in Qt Creator
QtWS25 Last Chance

Run OS console instead of "Application Output" in Qt Creator

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 7.7k 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
    PhantomR
    wrote on last edited by
    #1

    Hello,

    For a Qt Widgets Application, is it possible to display the usual operating system console (like it happens when you run a "Plain C++ Application" project) instead / in place of the "Application Output" at the bottom (of the Qt Creator window)? The reason is that I'd like some colors displayed in the console (for the Catch testing framework output.. I've also read it may be better to do the tests ina different project, but I'm not sure how to set up the second project in order to (maybe) automatically import sources in the main project).

    mrjjM 1 Reply Last reply
    0
    • P PhantomR

      Hello,

      For a Qt Widgets Application, is it possible to display the usual operating system console (like it happens when you run a "Plain C++ Application" project) instead / in place of the "Application Output" at the bottom (of the Qt Creator window)? The reason is that I'd like some colors displayed in the console (for the Catch testing framework output.. I've also read it may be better to do the tests ina different project, but I'm not sure how to set up the second project in order to (maybe) automatically import sources in the main project).

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @PhantomR
      You can try
      alt text
      and see if its useful.

      mrjjM 1 Reply Last reply
      3
      • mrjjM mrjj

        @PhantomR
        You can try
        alt text
        and see if its useful.

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #3

        Hmm, dont seem very functional when a GUI app.
        Tried to write to it but nothing happened.
        So maybe its not fun when it has GUI.

        I have tried such mix but maybe something like
        https://sourceforge.net/projects/qconsole/
        can work ?

        1 Reply Last reply
        1
        • P Offline
          P Offline
          PhantomR
          wrote on last edited by PhantomR
          #4

          @mrjj Thank you so much. The "Run in terminal" option actually worked for me (Ubuntu 17.04, Qt 5.8.0 x64, Qt Creator 4.2.1). Maybe if something goes wrong (hopefully not), I could also try looking at QConsole.

          Edit; I don't know why, but I cannot mark your post as the solution to my problem.

          mrjjM 1 Reply Last reply
          0
          • P PhantomR

            @mrjj Thank you so much. The "Run in terminal" option actually worked for me (Ubuntu 17.04, Qt 5.8.0 x64, Qt Creator 4.2.1). Maybe if something goes wrong (hopefully not), I could also try looking at QConsole.

            Edit; I don't know why, but I cannot mark your post as the solution to my problem.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @PhantomR
            Super. I thought u were on windows. Its a bit different with "terminals" so im not
            surprised if it works better in linux.

            Hmm, yes you are right, i cannot see that menu item either ?!:)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Once marked as solved you can't select the "correct answer anymore" unless your revert the state.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              mrjjM 1 Reply Last reply
              1
              • SGaistS SGaist

                Hi,

                Once marked as solved you can't select the "correct answer anymore" unless your revert the state.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @SGaist
                Ahh, sneaky :)

                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