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. Qt GUI application + Terminal debug
Forum Updated to NodeBB v4.3 + New Features

Qt GUI application + Terminal debug

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 314 Views 3 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.
  • F Offline
    F Offline
    fem_dev
    wrote on last edited by
    #1

    I would like to know if is possible to create a Qt GUI application and, inside the application use:

    qDebug() << "My GUI app writing a message on terminal..."
    

    And then run it from Terminal and see both GUI and terminal messages....

    Is this possible?

    Pablo J. RoginaP 1 Reply Last reply
    1
    • F fem_dev

      I would like to know if is possible to create a Qt GUI application and, inside the application use:

      qDebug() << "My GUI app writing a message on terminal..."
      

      And then run it from Terminal and see both GUI and terminal messages....

      Is this possible?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @fem_dev you may want to check documentation about debugging techniques

      The Qt implementation of these macros prints to the stderr output under Unix/X11 and macOS. With Windows, if it is a console application, the text is sent to console; otherwise, it is sent to the debugger.

      Please remember that you can also install your own message handler using qInstallMessageHandler()

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      6

      • Login

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