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 is meaning of g++ -DQT_QML_DEBUG in Qt compiler log?

what is meaning of g++ -DQT_QML_DEBUG in Qt compiler log?

Scheduled Pinned Locked Moved Solved General and Desktop
g++linuxdqtqmldebugqt 5.13.1qml
2 Posts 2 Posters 672 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.
  • Y Offline
    Y Offline
    Yash001
    wrote on last edited by Yash001
    #1

    I would like to know what is meaning of -DQT_QML_DEBUG flag in g++ while compile time. It is attached only in debug mode.

    what is actual text of DQT_QML_DEBUG?
    Is it provide by qt or already in g++ ?

    what is different in between two object file in debug mode?

    Use -DQT_QML_DEBUG flag

    g++ -c -pipe -g -std=gnu++11 -Wall -W -fPIC -DQT_QML_DEBUG -I$PWD  -o $OBJDIR/main.o $PWD/main.cpp
    

    Not use -DQT_QML_DEBUG flag

    g++ -c -pipe -g -std=gnu++11 -Wall -W -fPIC -I$PWD  -o $OBJDIR/main.o $PWD/main.cpp
    
    jsulmJ 1 Reply Last reply
    0
    • Y Yash001

      I would like to know what is meaning of -DQT_QML_DEBUG flag in g++ while compile time. It is attached only in debug mode.

      what is actual text of DQT_QML_DEBUG?
      Is it provide by qt or already in g++ ?

      what is different in between two object file in debug mode?

      Use -DQT_QML_DEBUG flag

      g++ -c -pipe -g -std=gnu++11 -Wall -W -fPIC -DQT_QML_DEBUG -I$PWD  -o $OBJDIR/main.o $PWD/main.cpp
      

      Not use -DQT_QML_DEBUG flag

      g++ -c -pipe -g -std=gnu++11 -Wall -W -fPIC -I$PWD  -o $OBJDIR/main.o $PWD/main.cpp
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Yash001 See https://doc.qt.io/qt-5/qtquick-debugging.html
      "what is actual text of DQT_QML_DEBUG?" - there is no text.
      -DQT_QML_DEBUG sets QT_QML_DEBUG define (such defines can be checked in C/C++ code using #ifdef QT_QML_DEBUG).
      QT_QML_DEBUG activates "QML Debugging Infrastructure".

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

      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