Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28282

Project running in Creator doesn't wait for input

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P5: Not important
    • None
    • Qt Creator 8.0.1, Qt Creator 9.0.0-beta1
    • Ubuntu 20.04 LTS
      g++ 9.4.0

    Description

      1. Create a new "Plain C++ Application" project using Creator's wizard.
      2. Add lines doing input and output:
            std::string s;
            std::cout << "Enter something: ";
            std::cin >> s;
            std::cout << "You entered: " << s << std::endl;
        
      3. Do not use "Run in Terminal".
      4. Run the project in Creator.
        The program runs through without stopping.

      Instead, the program should behave like it does when started from outside Creator, i.e. it should stop and wait for input to cin.
      That Creator doesn't have a way to actually provide such input in this configuration is a separate issue.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes