Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132107 3D surface graph bugs
  3. QTBUG-132351

ItemModelSurfaceDataProxy "columnRolePattern" and "columnRoleReplace" (as well as their row equivalents) do not work.

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • Graphs: 3D
    • None
    • a146903c4 (dev), a6e49ba07 (6.9), 0883ca1b6 (6.8)

    Description

      Minimal reproducer

      import QtQuick
      import QtGraphs
      
      Window {
        id: root
        width: 1280
        height: 960
        visible: true
        title: qsTr("Graphs 3D - Surface Graph")
      
        Surface3D {
          id: surfaceGraph
          anchors.fill: parent
      
          Surface3DSeries {
            id: surfaceSeries
      
            ItemModelSurfaceDataProxy {
              itemModel: dataModel
              rowRole: "xPos"
              columnRole: "timestamp"
              columnRolePattern: /(?:\d{2}.){2}(\d{4})/ // Match date, capture only year
              columnRoleReplace: "\\1" // Present the captured year
              yPosRole: "yPos"
            }
          }
        }
      
        ListModel {
          id: dataModel
          Component.onCompleted: {
            for (let i = 0; i <= 10; ++i) {
              for (let j = 2000; j <= 2015; ++j) {
                dataModel.append({"xPos": i, "yPos": i + j, "timestamp": "10.10." + j})
              }
            }
          }
        }
      }

       

      Attachments

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

        Activity

          People

            oulu_hillbilly Sami Varanka
            oulu_hillbilly Sami Varanka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes