We can use QML to easily create a hierarchy of objects. If we need a few input boxes or buttons, we can just add some blocks to the code, just like we added the TextField and Label components in the previous example, and our changes will appear in the window. However, when dealing with complex forms, it's sometimes hard to position the objects properly. Instead of trying different anchors and relaunching the application, you can use the visual form editor to see the changes as you make them.
Qt Quick Designer
Time for action – Adding a form to the project
Locate the qml.qrc file in Qt Creator's project tree and invoke the Add New... option in its context menu. From Qt section, select the QtQuick UI File template...