Important: Please read the Qt Code of Conduct -

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

  • 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

    (How) Can this be done?

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

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

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