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

3D bar graph bugs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.8
    • Graphs: 3D
    • None
    • All

    Description

      • Item labels are drawn when an item is selected despite Bar3DSeries "itemLabelVisible" property set to false.
        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
        
            Bar3DSeries {
              id: barSeries
        
              itemLabelVisible: false
        
              ItemModelBarDataProxy {
                itemModel: dataModel
                columnRole: "xPos"
                rowRole: "zPos"
                valueRole: "yPos"
              }
            }
          }
        
          ListModel {
            id: dataModel
            Component.onCompleted: {
              for (let i = 0; i <= 3; ++i) {
                for (let j = 0; j <= 3; ++j) {
                  dataModel.append({"xPos": i, "yPos": (i + j), "zPos": j})
                }
              }
            }
          }
        }
        
      • Bar3DSeries "meshAngle" and "meshRotation" properties bring 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
        
            Bar3DSeries {
              id: barSeries  
        
              meshRotation: Qt.quaternion(0.92, 0.0, 0.39, 0.0) // ~45 degrees rotation around Y
              meshAngle: 45
        
              ItemModelBarDataProxy {
                itemModel: dataModel
                columnRole: "xPos"
                rowRole: "zPos"
                valueRole: "yPos"
              }
            }
          }
        
          ListModel {
            id: dataModel
            Component.onCompleted: {
              for (let i = 0; i <= 3; ++i) {
                for (let j = 0; j <= 3; ++j) {
                  dataModel.append({"xPos": i, "yPos": (i + j), "zPos": j})
                }
              }
            }
          }
        }
        
      • Bar3DSeries with provided rotation data in ItemModelBarDataProxy isn't rotated.
        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
        
            Bar3DSeries {
              id: barSeries
        
              ItemModelBarDataProxy {
                itemModel: dataModel
                columnRole: "xPos"
                rowRole: "zPos"
                valueRole: "yPos"
                rotationRole: "rotation"
              }
            }
          }
        
          ListModel {
            id: dataModel
            Component.onCompleted: {
              for (let i = 0; i <= 3; ++i) {
                for (let j = 0; j <= 3; ++j) {
                  dataModel.append({"xPos": i, "yPos": (i + j), "zPos": j, "rotation": 45})
                }
              }
            }
          }
        }
        
      • Bars3D "cameraTargetPosition" - in contrary to the property description in the documentation, values outside range <-1.0, 1.0> are not clamped to the edge. In contrary to the information in the note, none of the coordinates in the vector is ignored for the bar graphs:
        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
        
            cameraTargetPosition: Qt.vector3d(2.0, 2.0, 2.0)
        
            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})
                }
              }
            }
          }
        }
        
      • Changing Bars3D margin property brings no effect. Minimal reproducible example:
        import QtQuick
        import QtGraphs
        
        Window {
          id: root
          width: 1280
          height: 960
          visible: true
          title: qsTr("Graphs 3D - Bar Graph")
        
          Timer {
            interval: 1000
            running: true
            repeat: true
            onTriggered: {
              barGraph.margin += 0.2
            }
          }
        
          Bars3D {
            id: barGraph
            anchors.fill: parent
        
            margin: 0.0
        
            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})
                }
              }
            }
          }
        }
        

      Attachments

        For Gerrit Dashboard: QTBUG-131135
        # Subject Branch Project Status CR V

        Activity

          People

            kwpark Kwanghyo Park
            bartoszrudzki Bartosz Rudzki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes