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

Global print out.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 310 Views 2 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.
  • J Offline
    J Offline
    jenya7
    wrote on last edited by
    #1

    In a Qt Console Application - printf - prints the messages on the console window. In a Qt Widget Application - can I redirect printf to print in some text box or may be there is some other function with similar functionality to print in a visual component?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Nothing exist to do this.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • J jenya7

        In a Qt Console Application - printf - prints the messages on the console window. In a Qt Widget Application - can I redirect printf to print in some text box or may be there is some other function with similar functionality to print in a visual component?

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

        @jenya7 you may want to take a look at the QDebug feature since:

        QDebug is used whenever the developer needs to write out debugging or tracing information to a device, file, string or console.

        and you can also couple that with qInstallMessageHandler() to define and install a QtMessageHandler that will give you plenty of possibilities for logging redirection...

        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

        J 1 Reply Last reply
        5
        • Pablo J. RoginaP Pablo J. Rogina

          @jenya7 you may want to take a look at the QDebug feature since:

          QDebug is used whenever the developer needs to write out debugging or tracing information to a device, file, string or console.

          and you can also couple that with qInstallMessageHandler() to define and install a QtMessageHandler that will give you plenty of possibilities for logging redirection...

          J Offline
          J Offline
          jenya7
          wrote on last edited by
          #4

          @Pablo-J-Rogina said in Global print out.:

          @jenya7 you may want to take a look at the QDebug feature since:

          QDebug is used whenever the developer needs to write out debugging or tracing information to a device, file, string or console.

          and you can also couple that with qInstallMessageHandler() to define and install a QtMessageHandler that will give you plenty of possibilities for logging redirection...

          Thank you

          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