Let's go through the following steps:
- Once again, we will start everything from scratch. Therefore, create a new Qt Quick application – Empty project in Qt Creator and create MainForm.ui.qml. Then, open up MainForm.ui.qml.
- We can keep the mouse area and text widget, but place the text widget at the bottom of the window. Change the Text property of the text widget to Change this text using C++ and set its font size to 18. After that, go to the Layout tab and enable both Vertical center anchor and Horizontal center anchor to ensure it's always somewhere in the middle of the window, regardless of how you rescale the window.
Set the Margin for the Vertical center anchor to 120 as shown in the following screenshot:
- Next, drag ...