QML Profiler fails to connect to server

2020-06-09 08:07发布

问题:

I'm trying to use QML Profiler to find out what is slowing my program down, but when I start it, I get this message:

QML Profiler: Connecting to debug server at 127.0.0.1:50540 ...
QML Profiler: Resolving host QML Profiler: Establishing network connection ...
QML Profiler: Network connection dropped

which repeats for a few second, and eventually a popup appears saying:

Could not connect to the in-process QML Profiler. Do you want to retry?

I have checked Enable QML Debugging and Profiling in qmake build steps and rebuilt, and I also have Enable QML checked in Debugger Settings.

标签: qt qml profiler