Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.8.3, 6.8, 6.9.0 Beta3, 6.9, 6.10.0 FF
-
6.3.0
-
None
-
941d5bf5b (dev), e07d2d25b (dev), 130c53ea5 (dev), 15bad109d (dev), a72bb5806 (dev), 33fd94011 (dev), 1f9d0b626 (dev), 7630d832e (dev), 150dd4796 (6.9), 11bf752e4 (6.9), 720280d14 (6.9), d95af4575 (6.9), 53e875737 (6.9), e291ed3b3 (6.9), 3eb0f5fc5 (6.9)
Description
The "First Steps with QML" (https://doc.qt.io/qt-6/qmlfirststeps.html) page seems to be a bit outdated and needs some update. For example:
"For simple UI files such as this one, select File > New File or Project > Application (Qt Quick) > Qt Quick Application - Empty from within Qt Creator."
"New File or Project" has been split up into "New File" and "New Project". In "New Project" there is no "Qt Quick Application - Empty" only "Qt Quick Application".
These are minor problems, but it seems that some of the listed examples are not working out of the box. When I am trying to run the first example from Qt Creator seemingly nothing happens, but the same example is working from the command line.
import QtQuick Rectangle { width: 200 height: 100 color: "red" Text { anchors.centerIn: parent text: "Hello, World!" } }
Most likely the problem is that a top level window is missing, see the second example, which has an ApplicationWindow and it works as expected. However, the top level window is also missing from the subsequent examples.