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

QtQuick shapes example has misleading file names

    XMLWordPrintable

Details

    • All
    • 251fdf01a (dev), f3b39f0cc (6.6), 9f266bf2d (6.5), 98d0dedc2 (6.6.0), a616298cc (tqtc/lts-6.2)

    Description

      The Qt Quick Shapes example code is confusing. Specifically, the QML files used by the shapegallery example are named in a way that is unintuitive:

      ListElement {
          name: qsTr("Dash pattern")
          shapeUrl: "linearGradient.qml"
      }
      ListElement {
          name: qsTr("Linear gradient")
          shapeUrl: "radialGradient.qml"
      }
      ListElement {
          name: qsTr("Radial gradient")
          shapeUrl: "dashPattern.qml"
      }
      

      That snippet can be found here. As you can see, the naming of the QML files doesn't match up with the labels for each of them. If you don't look at shapegallery.qml to see this, you'll likely just jump straight to the QML file that is named like the thing you're looking for, and it won't make sense.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              malocascio Mark Locascio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: