简体   繁体   中英

How to permanently disable QML debugger in Qt?

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

"CONFIG+=qml_debug"

I never use qml and dont want to manually click three times and ignore the warning every time I generate a new project.

You can download Microsoft Visual Studio 2017 Community Edition, it's free to use. And it is not only a great IDE but also it has got Qt support. By downloading Qt plug in for Microsoft Visuals Studio you can create Qt projects and build and debug them...

Everything that you do with Qt Creator and it has got no such problem as yours.

Also if you want to stay with Qt creator, check Projects -> Build & Run -> Run Settings. There is Enable QML setting which mine is disabled. Maybe you can disable it from there.

在此处输入图片说明

If not I advice you to check Tools -> Options -> Build & Run and Tools -> Options -> Debuggers. If it can be solved within Qt Creator it must be solved from these places.

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

CONFIG -= qml_debug

It seems to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM