Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Terminal output
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Terminal output

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 116 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.
  • S Offline
    S Offline
    samwise_genji
    wrote last edited by
    #1

    Hi, I am new to Qt Tools. Right now I am just working in non QT projects and trying out qt features as an IDE. SO basically the output in external Terminal does not wait for the command "Press <RETURN> to exit the window", rather it immediately closes. It used to work some time ago but now suddenly it doesn't and I have already tried several things such as the /K "%{CurrentRun:Executable:FilePath}" argument for shell in terminal but to no avail. I even reinstalled QT Creator but it didn't help at all.

    Using system.pause works, as well as QTextStream in(stdin); in.readLine(); also works but I don't understand how this internal Qt feature for pausing the terminal for output suddenly is now not working, as now it is impossible to check output with the terminal instantly closing by itself.

    my pro file:
    TEMPLATE = app
    CONFIG += console c++17
    CONFIG -= app_bundle
    QT += core

    SOURCES +=
    main.cpp

    and the main code:

    #include <QCoreApplication> 
    #include <QTextStream>
    #include <cstdlib>
    #include <iostream>
    using namespace std;
    int main(int argc, char *argv[]) {
      QCoreApplication app(argc, argv);
    
      cout << "Hello World!" << endl;
      cout << "What's up?" << endl;
      int a;
      cout << "Enter a number: ";
      cin >> a;
      cout << "Your number - " << a << endl;
      // QTextStream in(stdin);
      // in.readLine(); 
      // system("pause"); 
      return 0; 
    }
    
    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi @samwise_genji

      It looks like you hit QTCREATORBUG-33102

      Regards

      Qt has to stay free or it will die.

      cristian-adamC 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @samwise_genji

        It looks like you hit QTCREATORBUG-33102

        Regards

        cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote last edited by
        #3

        @aha_1980 said in Qt Creator Terminal output:

        Hi @samwise_genji

        It looks like you hit QTCREATORBUG-33102

        Regards

        The bug has been fixed in Qt Creator 17.0.1, which is not yet released, but you can get a snapshot from https://download.qt.io/snapshots/qtcreator/17.0/17.0.1/

        1 Reply Last reply
        2
        • S Offline
          S Offline
          samwise_genji
          wrote last edited by
          #4

          Thank you for the heads up, @cristian-adam do you know when it will be officially released ? I can make do with temporary workarounds till then

          cristian-adamC 1 Reply Last reply
          0
          • S samwise_genji

            Thank you for the heads up, @cristian-adam do you know when it will be officially released ? I can make do with temporary workarounds till then

            cristian-adamC Offline
            cristian-adamC Offline
            cristian-adam
            wrote last edited by
            #5

            @samwise_genji said in Qt Creator Terminal output:

            Thank you for the heads up, @cristian-adam do you know when it will be officially released ? I can make do with temporary workarounds till then

            At https://wiki.qt.io/Qt_Creator_Releases we can see:

            Qt Creator 17.0.1: wk34 (~Aug 21 2025), depends on Qt 6.9.2

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved