night
night

Reputation: 105

How to permanently disable QML debugger in Qt Creator?

Whenever I make a Qt project, the qmake command includes this parameter:

CONFIG += qml_debug

I never use QML and don't want to manually click three times and ignore the warning every time I generate a new project.

Upvotes: 6

Views: 3236

Answers (3)

user17726418
user17726418

Reputation: 2365

To disable QML debugging in Qt Creator 12.0.1:

  • Go to the menubar, Edit -> Preferences -> Build & Run -> Default Build Properties

  • Choose "Disable" for the "QML debugging" setting.

A GIF demonstrating where to find the setting in Qt Creator

Note: For already-built projects, you need to delete the build folder and build again for this to take effect. Cleaning and rebuilding is not enough.

Upvotes: 2

BUY
BUY

Reputation: 736

Check Projects -> Build & Run -> Run Settings. There is an "Enable QML" setting, mine is disabled.

enter image description here

If not, I advise you to check Tools -> Options -> Build & Run, and Tools -> Options -> Debuggers.

Upvotes: 1

Kiruahxh
Kiruahxh

Reputation: 2035

It happened to me in a project. I just added this to the .pro file :

CONFIG -= qml_debug

It seems to work.

Upvotes: 2

Related Questions