Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107030

Update documentation of QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.5
    • 6.3.0
    • QML: Tooling
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fabiankosmale Fabian Kosmale
            mate Máté Barany
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes