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

GraphsTheme documentation ambiguities

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.1, 6.8.2, 6.9.0 FF
    • 6.8
    • Graphs: 3D
    • None
    • All
    • 4260f8f99 (dev), 49beb688a (6.8), ed1ed146a (6.8.1)

    Description

      • GraphsTheme "baseColors" and "seriesColors" properties seem to overlap in their roles.


        Setting "baseColors" has no effect.
        Minimal reproducible example:
        import QtQuick
        import QtGraphs
        
        Window {
          id: root
          width: 1280
          height: 960
          visible: true
          title: qsTr("Graphs 3D - Bar Graph")
        
          Bars3D {
            id: barGraph
            anchors.fill: parent
        
            theme: GraphsTheme {
              theme: GraphsTheme.Theme.UserDefined
              baseColors: ["red"]
            }
        
            Bar3DSeries {
              id: barSeries
        
              ItemModelBarDataProxy {
                itemModel: dataModel
                columnRole: "xPos"
                rowRole: "zPos"
                valueRole: "yPos"
              }
            }
          }
        
          ListModel {
            id: dataModel
            Component.onCompleted: {
              for (let i = -10; i <= 10; ++i) {
                for (let j = -10; j <= 10; ++j) {
                  dataModel.append({"xPos": i, "yPos": (i + j), "zPos": j})
                }
              }
            }
          }
        }
        
      • Mentioned in the GraphsTheme docs "seriesGradients" does not seem to exist:

      Attachments

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

        Activity

          People

            tokorpip Tomi Korpipää
            bartoszrudzki Bartosz Rudzki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes