Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Qt Creator Clang Code Model

From Qt Wiki
Revision as of 15:43, 7 April 2016 by Nikolai (talk | contribs) (Created page with "Documentation: http://doc.qt.io/qtcreator/creator-clang-codemodel.html == Debugging == [http://doc.qt.io/qt-5/qloggingcategory.html QLoggingCategory] is used for debugging o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation: http://doc.qt.io/qtcreator/creator-clang-codemodel.html

Debugging

QLoggingCategory is used for debugging output. Thus, a file qtlogging.ini with the contents

 [Rules]
 qtc.clangcodemodel.ipc=true
 qtc.clangbackend.verboselib=true
 qtc.clangbackend.parse=true
 qtc.clangbackend.timers=true

and the Qt Creator invocation

 Linux/Mac:
 $ QT_LOGGING_CONF=/path/to/qtlogging.ini ./qtcreator
 Windows (start DebugView in advance to see the output):
 $ set QT_LOGGING_CONF=\path\to\qtlogging.ini
 $ qtcreator.exe

will generate debugging output.