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 - missing output
QtWS25 Last Chance

QDebug - missing output

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.5k 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.
  • K Offline
    K Offline
    kolegs
    wrote on last edited by
    #1

    Hi,

    I got new PC and needed to install ubuntu(17.10) and Qt(newest available).
    So I got a problem I do not see qDebug output in the QtCreator. Example of the code:

        qDebug() << "This debug is visible in QtCreator";
        qDebug() << "This one is also visible";
        QApplication a(argc, argv);
        qDebug() << "This one is gone";
    

    So as you can see ever qDebug after QApplication is not visible.
    What am I missing? BTW. Same project on previous PC works correctly so probably something wrong with my settings.
    Thanks in advance

    jsulmJ 1 Reply Last reply
    0
    • K kolegs

      Hi,

      I got new PC and needed to install ubuntu(17.10) and Qt(newest available).
      So I got a problem I do not see qDebug output in the QtCreator. Example of the code:

          qDebug() << "This debug is visible in QtCreator";
          qDebug() << "This one is also visible";
          QApplication a(argc, argv);
          qDebug() << "This one is gone";
      

      So as you can see ever qDebug after QApplication is not visible.
      What am I missing? BTW. Same project on previous PC works correctly so probably something wrong with my settings.
      Thanks in advance

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kolegs said in QDebug - missing output:

      qDebug() << "This one is gone";

      What are you doing after this line?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kolegs
        wrote on last edited by
        #3

        I start the whole application, create classes, connect signals, etc.
        In this project I do not use qInstallMessageHandler.
        I think it is somehow connected to QtCreator settings or system settings

        JonBJ 1 Reply Last reply
        0
        • K kolegs

          I start the whole application, create classes, connect signals, etc.
          In this project I do not use qInstallMessageHandler.
          I think it is somehow connected to QtCreator settings or system settings

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

          @kolegs
          Probably not your problem, but at least read through, say, https://forum.qt.io/topic/55645/solved-no-output-from-qdebug-why-not/12

          1 Reply Last reply
          1
          • K Offline
            K Offline
            kolegs
            wrote on last edited by
            #5

            @JonB
            Yeah that was it, just created ~/.config/QtProject/qtlogging.ini and now it works
            Not sure why this file was missing, I will report the bug later

            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