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. Printing to console from the project file?
Forum Updated to NodeBB v4.3 + New Features

Printing to console from the project file?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.9k 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.
  • L Offline
    L Offline
    lansing
    wrote on last edited by
    #1

    I ran into a problem building my project where I suspected that it's coming from the program not reading a block of codes in the project file. So I want to insert a print statement like QDebug to debug it. How do I do it?

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

      When you say project file, are you talking about the Qt PRO file ? If this the case you can use something like

      message(when the Makefile is processed.)
      

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

      L 1 Reply Last reply
      4
      • dheerendraD dheerendra

        When you say project file, are you talking about the Qt PRO file ? If this the case you can use something like

        message(when the Makefile is processed.)
        
        L Offline
        L Offline
        lansing
        wrote on last edited by
        #3

        @dheerendra Thanks it works

        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