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
Forum Updated to NodeBB v4.3 + New Features

How to output to console

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 944 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 21 Feb 2019, 15:06 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

    A 1 Reply Last reply 21 Feb 2019, 15:37
    0
    • A Alex Williams
      21 Feb 2019, 15:06

      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

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 21 Feb 2019, 15:37 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 21 Feb 2019, 16:06 last edited by
        #3

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

        1 Reply Last reply
        1

        1/3

        21 Feb 2019, 15:06

        • Login

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