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. Stdin doesn't read
QtWS25 Last Chance

Stdin doesn't read

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 298 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_milena__97S Offline
    s_milena__97S Offline
    s_milena__97
    wrote on last edited by
    #1

    Hi. 👋
    Standard input doesn't read my data.

    Screenshot 2023-08-06 at 13.24.13.png

    I tried existing solution from 3 May, but everything stood absolute the same.

    Thank you and hope you soon. I have tu graduate this year, so I have ASAP to finish my project. 🙏

    Pl45m4P 1 Reply Last reply
    0
    • s_milena__97S Offline
      s_milena__97S Offline
      s_milena__97
      wrote on last edited by
      #2

      And I forgot to note that Mac OS 13.6 is my operating system.

      JonBJ 1 Reply Last reply
      0
      • s_milena__97S s_milena__97

        And I forgot to note that Mac OS 13.6 is my operating system.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @s_milena__97
        Not that it matters here, but you include QCoreApplication but do not create an Qt application object, so this is not a Qt program.

        Where do you expect the application to read stdin from? You are running it from Qt Creator and lookng at Application Output pane, that is what it says, only somewhere to send application output. Does not accept input.

        Either run your application outside Creator from a terminal and you will be able to enter input, or set Creator checkbox when running to request "Create a terminal from Creator when this runs".

        P.S.

        I tried existing solution from 3 May

        Don't know what this means. Though it doesn't matter, solution is as above.

        1 Reply Last reply
        3
        • s_milena__97S s_milena__97

          Hi. 👋
          Standard input doesn't read my data.

          Screenshot 2023-08-06 at 13.24.13.png

          I tried existing solution from 3 May, but everything stood absolute the same.

          Thank you and hope you soon. I have tu graduate this year, so I have ASAP to finish my project. 🙏

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @s_milena__97

          If you dont use any Qt GUI elements yet, you can add
          CONFIG += console to your zdravosvetee.pro file, go to your projects "Build and run" settings and check "Run in terminal" there.


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          2

          • Login

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