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. Since Qt 5.10.1 no more qDebug and cout output
Forum Updated to NodeBB v4.3 + New Features

Since Qt 5.10.1 no more qDebug and cout output

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 5 Posters 5.1k Views 2 Watching
  • 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
    qDebug
    wrote on last edited by
    #1

    Hey guys!

    Since i installed latest Qt 5.10.1 on Windows, i don't get any output from qDebug lines and cout is only showing up after the app is closed followed by some random hex code i guess.

    I'm using the precompiled version of Qt msvc2013_64. The last version of Qt i've used was 5.9.2 and also msvc2013_64 and qDebug just worked fine. Never had this issue before with any Qt version in the past.

    And no, there is no QT_NO_DEBUG_OUTPUT involved. If i open the same project in an older Qt version everything is working just fine.

    Any clues why there is no more qDebug output showing up?

    Thanks!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dr. BFR
      wrote on last edited by
      #2

      Same problem since a day.
      qDebug() visible in "run in terminial" BUT NOT in "Application Output" anymore.
      (opensuse tumbleweed latest)

      aha_1980A 1 Reply Last reply
      0
      • D Dr. BFR

        Same problem since a day.
        qDebug() visible in "run in terminial" BUT NOT in "Application Output" anymore.
        (opensuse tumbleweed latest)

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @Dr.-BFR

        for Linux have a look here if this solves your problem: https://forum.qt.io/topic/54820/qt-qdebug-not-working-with-qconsoleapplication-or-qapplication/5

        Qt has to stay free or it will die.

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

          So far no luck. The Linux solution is no help for Windows and i lost my interest researching this problem after a few hours. Until this gets fixed i stay with Qt 5.9.2. It clearly is an issue related to Qt 5.10.1 because older version on the same PC/OS/installation do run just fine and qDebug output works as expected.

          J.HilkJ 1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @qDebug said in Since Qt 5.10.1 no more qDebug and cout output:

            So far no luck. The Linux solution is no help for Windows and i lost my interest researching this problem after a few hours. Until this gets fixed i stay with Qt 5.9.2. It clearly is an issue related to Qt 5.10.1 because older version on the same PC/OS/installation do run just fine and qDebug output works as expected.

            This sounds like a regression. Could you please report this to https://bugreports.qt.io/ ?

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            1
            • Q qDebug

              So far no luck. The Linux solution is no help for Windows and i lost my interest researching this problem after a few hours. Until this gets fixed i stay with Qt 5.9.2. It clearly is an issue related to Qt 5.10.1 because older version on the same PC/OS/installation do run just fine and qDebug output works as expected.

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @qDebug I know this sounds like a cliché, but have you tried deinstalling and installing ?
              I had some serious issues the last 2 updates with qt and qtcreator and managed to fix in only with a complete reinstallation of the total framework.

              I'm on my 3rd installation in 6 Month, and I still have the issue that in qtcreator *cpp and *h icons share the same icon as *.pro files ....


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              Q 1 Reply Last reply
              3
              • D Offline
                D Offline
                Dr. BFR
                wrote on last edited by
                #7

                I followed all links so far.
                ~/.config/QtProject/qtlogging.ini or in /usr/share/qt5 do not exist on SuSE
                Checked with (WORKING debug output on OpenSuse 42.3): these files do also not exist there.
                So, that can not be the solution.

                Conclusion: wait for next Qt update. It may be something internal (because the debugger jumps into the qDebug() and tries to output via return fromUtf8_helper ...

                1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  @qDebug I know this sounds like a cliché, but have you tried deinstalling and installing ?
                  I had some serious issues the last 2 updates with qt and qtcreator and managed to fix in only with a complete reinstallation of the total framework.

                  I'm on my 3rd installation in 6 Month, and I still have the issue that in qtcreator *cpp and *h icons share the same icon as *.pro files ....

                  Q Offline
                  Q Offline
                  qDebug
                  wrote on last edited by
                  #8

                  @J.Hilk

                  Thanks you! It did solve the problem. Don't know why, because both times i used the offline installer, but who cares at the end if it works :)

                  Thanks again.

                  1 Reply Last reply
                  2
                  • D Offline
                    D Offline
                    Dr. BFR
                    wrote on last edited by
                    #9

                    export QT_LOGGING_TO_CONSOLE=1

                    start QtCreator - gives the desired.

                    1 Reply Last reply
                    3

                    • Login

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