Nominate our 2022 Qt Champions!

QT 5.15.1 Console project Not popup the Console during the Run.

  • Hi,

    I was using QT 5.15.0 and it was working perfect on my old laptop, the problem shows once I download the QT 5.15.1 on my new laptop, when I create a simple C++ Console project the when I run the program the Console now show up and the result is shown in QT creator Application Output Area at the bottom but I can't put my stander input to the app, so if it's static data it shows in the bottom in the Application output area in QT creator, but when I make a simple program that adds 2 integers and accept it from stander input using c++ cin it did not work or accept the Input, so what I am missing in my Configuration in the new QT 5.15.1?
    my .pro

    QT -= gui
    CONFIG += c++11 console
    CONFIG -= app_bundle
    # You can make your code fail to compile if it uses deprecated APIs.
    # In order to do so, uncomment the following line.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    SOURCES += \
            SVG/svgpttopx.cpp \
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target

    OS: Windows 10 Home.

  • Lifetime Qt Champion

    Hi @AmrCoder,

    Goto (Left Side) Projects > Build & Run > Run and check the box "Run in Terminal"


  • Thank you!

Log in to reply