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. what should i do to disable the qDebug() method on the release version?
Forum Updated to NodeBB v4.3 + New Features

what should i do to disable the qDebug() method on the release version?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 894 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.
  • nicker playerN Offline
    nicker playerN Offline
    nicker player
    wrote last edited by nicker player
    #1

    I used the command that

    DEFINES += QT_NO_DEBUG_OUTPUT
    DEFINES += QT_NO_WARNNING_OUTPUT
    

    to disable the qDebug() method.but the program is still running the qDebug() method on the release version.

    JonBJ 1 Reply Last reply
    0
    • nicker playerN nicker player

      I used the command that

      DEFINES += QT_NO_DEBUG_OUTPUT
      DEFINES += QT_NO_WARNNING_OUTPUT
      

      to disable the qDebug() method.but the program is still running the qDebug() method on the release version.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote last edited by JonB
      #2

      @nicker-player said in what should i do to disable the qDebug() method on the release version?:

      DEFINES += QT_NO_WARNNING_OUTPUT

      This is misspelled (you should always look things up and copy+paste not type, especially if English is not your native language), so if you are getting a warning it might be why?

      If there are qDebug() statements in Qt code rather than explicitly in your own, #define will make no difference. I do not know whether Qt's own Release libraries are are compiled with QT_NO_DEBUG_OUTPUT or not.

      Correct the spelling and see where that gets you.

      1 Reply Last reply
      1

      • Login

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