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. How to output to console

How to output to console

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 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.
  • A Offline
    A Offline
    Alex Williams
    wrote on last edited by
    #1

    Hello,

    I have recently taken over a project repository and when running the program I am unable to use any of the outputting methods mentioned in the response here such as qInfo(), qDebug() etc.:
    https://stackoverflow.com/questions/3886105/how-to-print-to-console-when-using-qt

    These functions work as expected with other QT Projects I have written, but don't in the project I have inherited.

    Do you have any advice for what the problem might be?

    Many thanks
    Alex

    aha_1980A 1 Reply Last reply
    0
    • A Alex Williams

      Hello,

      I have recently taken over a project repository and when running the program I am unable to use any of the outputting methods mentioned in the response here such as qInfo(), qDebug() etc.:
      https://stackoverflow.com/questions/3886105/how-to-print-to-console-when-using-qt

      These functions work as expected with other QT Projects I have written, but don't in the project I have inherited.

      Do you have any advice for what the problem might be?

      Many thanks
      Alex

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

      Hi @Alex-Williams,

      Which Qt version are you running? On which operating system?

      The first thing I would check is if there is a qInstallMessageHandler somewhere in the project (it was qInstallMsgHandler in Qt4 times). There you can redirect all the debug output.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      3
      • A Offline
        A Offline
        Alex Williams
        wrote on last edited by
        #3

        That's it. Thank you very much for a quick response.

        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