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. Std::cout only prints everything after I end the program
QtWS25 Last Chance

Std::cout only prints everything after I end the program

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.1k 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.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    I have several std::cout statement scattered in my program for debugging, and they do not appear in the console at all while the program is running. When I end the program, they all show up at that moment. Anyone know what might cause this behavior?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qttester5
      wrote on last edited by
      #2

      Please disregard. I solved it.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daniel132
        wrote on last edited by
        #3

        You should use qDebug

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qttester5
          wrote on last edited by
          #4

          I'm working with std strings so I thought that keeping things in STL was wise.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nzxhvr70
            wrote on last edited by
            #5

            What was your solution? I am a newbie and having the same issue.

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qttester5
              wrote on last edited by
              #6

              i forgot the << endl

              1 Reply Last reply
              0

              • Login

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