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

Typo in example code in QQuickRhiItem documentation

    XMLWordPrintable

Details

    • All
    • 0118dcc8e (dev), 0c63a33e9 (6.8), 9519d75fa (6.7)

    Description

      There is an error in
      https://doc.qt.io/qt-6/qquickrhiitem.html

      The line
      NumberAnimation on angle { from: 0; to: 360: duration: 5000; loops: Animation.Infinite }
      should be
      NumberAnimation on angle { from: 0; to: 360; duration: 5000; loops: Animation.Infinite }
      (The colon after 360 should be replaced by  a semicolon)

      Also, the example is not complete as given in https://doc.qt.io/qt-6/qquickrhiitem.html. The shaders are missing. They can be found in https://doc.qt.io/qt-6/qrhiwidget.html but should be included in https://doc.qt.io/qt-6/qquickrhiitem.html as well, along with the explanation of how to compile them.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            jrade Johan Råde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes