The most common practice to debug QML is the use of the API console. JavaScript developers should be familiar with this because of the console support in QML. The relationships between the console
functions and the Qt/C++ QDebug
functions are given as follows:
QML |
Qt/C++ |
---|---|
|
|
|
|
|
|
|
|
|
|
With the preceding supports present, QML is just like JavaScript programming. At the same time, the following functions are also introduced in QML: