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. 'qDebug() ' can't output text
Forum Updated to NodeBB v4.3 + New Features

'qDebug() ' can't output text

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 2.6k Views 1 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.
  • J Offline
    J Offline
    JoseLpd
    wrote on last edited by
    #1

    Hi all~
    I can't get texts from qDebug() .Besides,when I quit the application,the 'application output' :
    QFileSystemWatcher::removePaths: list is empty
    QFileSystemWatcher::removePaths: list is empty

    what's meaning?

    How could I solve this problem?? Thanks!

    K jiancaiyangJ 2 Replies Last reply
    0
    • J JoseLpd

      Hi all~
      I can't get texts from qDebug() .Besides,when I quit the application,the 'application output' :
      QFileSystemWatcher::removePaths: list is empty
      QFileSystemWatcher::removePaths: list is empty

      what's meaning?

      How could I solve this problem?? Thanks!

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @JoseLpd

      Hi and welcome to devnet forum

      Probably a problem of howyou call the removePaths member function. You should also post at least the code snippets which are causing this output.

      Vote the answer(s) that helped you to solve your issue(s)

      J 1 Reply Last reply
      1
      • K koahnig

        @JoseLpd

        Hi and welcome to devnet forum

        Probably a problem of howyou call the removePaths member function. You should also post at least the code snippets which are causing this output.

        J Offline
        J Offline
        JoseLpd
        wrote on last edited by
        #3

        @koahnig sorry,I only output a text by qDebug() in simply main function.I not include the "QFileSystemWatcher" class

        1 Reply Last reply
        0
        • J JoseLpd

          Hi all~
          I can't get texts from qDebug() .Besides,when I quit the application,the 'application output' :
          QFileSystemWatcher::removePaths: list is empty
          QFileSystemWatcher::removePaths: list is empty

          what's meaning?

          How could I solve this problem?? Thanks!

          jiancaiyangJ Offline
          jiancaiyangJ Offline
          jiancaiyang
          wrote on last edited by
          #4

          @JoseLpd If you are using Debian related OS to write Qt program, we may well encounter this problem, which confuses me too.
          There is no sign to resolve the problem, incompatibility of libraries could be the root of the problem.
          I suggest writing qWarning() and qCritical() instead of qDebug().

          Or to installMessageHandler to redirect debug information to other places.

          我们自己的论坛:http://qtdream.com
          擅长三维角色仿真动画。

          J 1 Reply Last reply
          0
          • jiancaiyangJ jiancaiyang

            @JoseLpd If you are using Debian related OS to write Qt program, we may well encounter this problem, which confuses me too.
            There is no sign to resolve the problem, incompatibility of libraries could be the root of the problem.
            I suggest writing qWarning() and qCritical() instead of qDebug().

            Or to installMessageHandler to redirect debug information to other places.

            J Offline
            J Offline
            JoseLpd
            wrote on last edited by
            #5

            @jiancaiyang Thanks!But I don't know that meaning of 'QFileSystemWatcher::removePaths: list is empty'.I try to change another version(Qt5.9.3) and problem is same too .

            I use qInstallMessageHandler() to capture qWarning() qCritical() qDebug(),but qDebug() can't be captured.That's strange!

            jiancaiyangJ 1 Reply Last reply
            0
            • J JoseLpd

              @jiancaiyang Thanks!But I don't know that meaning of 'QFileSystemWatcher::removePaths: list is empty'.I try to change another version(Qt5.9.3) and problem is same too .

              I use qInstallMessageHandler() to capture qWarning() qCritical() qDebug(),but qDebug() can't be captured.That's strange!

              jiancaiyangJ Offline
              jiancaiyangJ Offline
              jiancaiyang
              wrote on last edited by
              #6

              @JoseLpd Try using qCDebug() instead qDebug().

              我们自己的论坛:http://qtdream.com
              擅长三维角色仿真动画。

              J 1 Reply Last reply
              0
              • jiancaiyangJ jiancaiyang

                @JoseLpd Try using qCDebug() instead qDebug().

                J Offline
                J Offline
                JoseLpd
                wrote on last edited by
                #7

                @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                aha_1980A 1 Reply Last reply
                0
                • J JoseLpd

                  @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

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

                  @JoseLpd said in 'qDebug() ' can't output text:

                  @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                  Hi, have you tried the suggestions from https://brendanwhitfield.wordpress.com/2016/06/08/enabling-qdebug-on-fedora/ ?

                  Qt has to stay free or it will die.

                  J 1 Reply Last reply
                  2
                  • aha_1980A aha_1980

                    @JoseLpd said in 'qDebug() ' can't output text:

                    @jiancaiyang Useless and still the same problem.Among these qCWarning qCDebug qCCritical,only qCDebug can't output message

                    Hi, have you tried the suggestions from https://brendanwhitfield.wordpress.com/2016/06/08/enabling-qdebug-on-fedora/ ?

                    J Offline
                    J Offline
                    JoseLpd
                    wrote on last edited by
                    #9

                    @aha_1980 thank you very much!The problem is solved :)

                    aha_1980A 1 Reply Last reply
                    2
                    • J JoseLpd

                      @aha_1980 thank you very much!The problem is solved :)

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

                      @JoseLpd Cool. then please mark this thread as Solved.

                      Happy New Year!

                      Qt has to stay free or it will die.

                      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