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. [POSSIBLE BUG] QT Console Application appears in Application Output panel instead of Console Window
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
consoleconsole applicaqt 5.7
5 Posts 3 Posters 4.3k 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.
  • CybeXC Offline
    CybeXC Offline
    CybeX
    wrote on last edited by CybeX
    #1

    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?

    FlotisableF 1 Reply Last reply
    0
    • CybeXC 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?

      FlotisableF Offline
      FlotisableF Offline
      Flotisable
      wrote on last edited by
      #2

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

      CybeXC 1 Reply Last reply
      1
      • FlotisableF Flotisable

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

        CybeXC Offline
        CybeXC Offline
        CybeX
        wrote on last edited by
        #3

        @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.

        FlotisableF 1 Reply Last reply
        2
        • CybeXC CybeX

          @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.

          FlotisableF Offline
          FlotisableF Offline
          Flotisable
          wrote on last edited by Flotisable
          #4

          @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
          0
          • N Offline
            N Offline
            NightCoderQT
            wrote on last edited by
            #5

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

            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