Linux: Qt Creator debugger freezes when creating QQmlApplicationEngine

I debugged the qt fast weather example in Qt Creator on Linux, the debugger freezes while the following code is executing:

QQmlApplicationEngine engine(QUrl("qrc:/weatherapp/qml/main.qml")); 

The debug log continues to show:

QML debugger: no application exits on time, connection attempt ...

I am using Qt Creator 3.1.1 on ArchLinux x64.

+6
source share
1 answer

This is apparently a bug in Qt (see details below).

As a temporary workaround, you can disable QML debugging, which should not have much impact on your debugging experience. Go to the project and build settings and uncheck the QML debugging box in the qmake options, as shown in the figure:

Uncheck QML debugging checkbox

Remember to rebuild afterwards.

I have this problem on Arch Linux x86_64 as well. The QML debugger seems to be waiting for the internal wait condition to complete.

I reported an error in the Qt project .

+10
source

Source: https://habr.com/ru/post/970857/


All Articles