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. Not getting any output message in my Compile Output Window even when my program gives the desired output.
Forum Updated to NodeBB v4.3 + New Features

Not getting any output message in my Compile Output Window even when my program gives the desired output.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 245 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.
  • Swati777999S Offline
    Swati777999S Offline
    Swati777999
    wrote on last edited by
    #1

    Hi All,

    I'm experimenting with painting in Qt creator for the Widget application. My program gives the desired output but I've put a debug message somewhere in the middle of the program to check the runtime value of a variable but it doesn't show any value in the compile output window. What might be the reason for it?

    Can someone tell me how to get the values of the variables or qDebug() << "This message" messages in the compile output window while working for a Widget application?

    Thanks in advance!

    “ In order to be irreplaceable, one must always be different” – Coco Chanel

    jsulmJ JonBJ 2 Replies Last reply
    0
    • Swati777999S Swati777999

      Hi All,

      I'm experimenting with painting in Qt creator for the Widget application. My program gives the desired output but I've put a debug message somewhere in the middle of the program to check the runtime value of a variable but it doesn't show any value in the compile output window. What might be the reason for it?

      Can someone tell me how to get the values of the variables or qDebug() << "This message" messages in the compile output window while working for a Widget application?

      Thanks in advance!

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

      @Swati777999 Do you build in debug mode?
      Are you sure the code where the qDebug is is actually executed?

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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        The compiler will not output runtime message hence your message will not appear in the compile output window.

        What exactly are you looking for ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • Swati777999S Swati777999

          Hi All,

          I'm experimenting with painting in Qt creator for the Widget application. My program gives the desired output but I've put a debug message somewhere in the middle of the program to check the runtime value of a variable but it doesn't show any value in the compile output window. What might be the reason for it?

          Can someone tell me how to get the values of the variables or qDebug() << "This message" messages in the compile output window while working for a Widget application?

          Thanks in advance!

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

          @Swati777999
          qDebug() messages appear when your code is run. They go to the Application Output window, or I believe to somewhere funky and hard-to-get-at if you are running under Windows. Is that your situation?

          If you are talking about a message to be issued when compiling your code, you will need a "directive" understood by your compiler, like #warning "This is a warning" (GCC) in your code, and that would go to the Compile Output Windows.

          1 Reply Last reply
          2

          • Login

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