Question:
QML debugger is enabled by default in Qt5 or later. Used to tell the user that this opens a port to the Javascript interpreter running QML to get debugging output from. Obviously, this creates a security hole, so it should be turned off when used in unsafe places (automatically turned off on release run).
- The QML debugger is disabled by default in Qt4 and enabled by default in Qt5 and later versions.
- If you don’t use QML, turn it off by all means.
- Enabling QML debugging requires opening the socket on the TCP port, which is a security risk. Anyone on the Internet can connect to an application that is debugging and executing any JavaScript function. Therefore, you must ensure that ports are properly protected by firewalls.
Solution 1:
Uncheck Enable QML as shown in the figure below
Solution 2:
Close QML debugger directly in pro file:
Qt4: CONFIG -= declarative_DEBUG Qt5: CONFIG -= qml_debugCopy the code