Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved [POSSIBLE BUG] QT Console Application appears in Application Output panel instead of Console Window

    General and Desktop
    console console applica qt 5.7
    3
    5
    3807
    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.
    • CybeX
      CybeX last edited by CybeX

      I would like to have my application output to be opened into a new console window.

      Currently it opens in the Application Output pane as show in this question

      .pro file for what it's worth

      QT += core
      QT -= gui
      
      CONFIG += c++11
      
      TARGET = console_app
      CONFIG += console
      CONFIG -= app_bundle
      
      TEMPLATE = app
      
      SOURCES += main.cpp
      
      DEFINES += QT_DEPRECATED_WARNINGS
      

      (How) Can this be done?

      Flotisable 1 Reply Last reply Reply Quote 0
      • Flotisable
        Flotisable @CybeX last edited by

        @CybeX
        Do you mean Project Mode -> Run -> run in terminal in Qt creator?

        CybeX 1 Reply Last reply Reply Quote 1
        • CybeX
          CybeX @Flotisable last edited by

          @Flotisable

          I possibly have a bug here:

          The run in terminal option was checked, yet it still opened in Application Output.

          Qt Creator Info:

          **Qt Creator 4.2.0 (4.2.0)**
          
          Based on Qt 5.7.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
          
          Built on Dec 9 2016 12:18:01
          
          From revision 5071dd80cb
          

          Steps to replicate:

          1. New Project> Qt Console Application>next>next>Finish
          2. Add some code, anything really
          3. Run Application

          You will see it opens in Application Output panel

          Now go to Project Mode -> Run -> run in terminal and see it checked.

          To fix this: (my exact steps to solve this issue)

          1. Uncheck followed by clean, run qmake, rebuild.
          2. Go back and check it again followed by clean, run qmake, rebuild

          And it will open up in a new console window.

          Flotisable 1 Reply Last reply Reply Quote 2
          • Flotisable
            Flotisable @CybeX last edited by Flotisable

            @CybeX
            yes, I have the same problem sometimes.
            I just uncheck it and check it again then run the program and it will work.

            1 Reply Last reply Reply Quote 0
            • N
              NightCoderQT last edited by

              Really very help full. Thanks for sharing your precious experiences movements.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post