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

LogValue3DAxisFormatter "edgeLabelsVisible" or "showEdgeLabels" bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.2, 6.9.0 FF
    • 6.8.0
    • Graphs: 3D
    • None
    • All
    • 5bcfc6a45 (dev), 73fce2237 (6.8)

    Description

      "showEdgeLabels" (in the docs) or "edgeLabelsVisible" (in the source code) set to false does not work properly - first (bottom) label is rendered normally and the last one is rendered empty with no text.
      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
      
          valueAxis: Value3DAxis {
            formatter: LogValue3DAxisFormatter {
              edgeLabelsVisible: false
            }
          }
      
          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})
              }
            }
          }
        }
      }
      

      Property name mismatch reported under QTBUG-131131 report.

      Attachments

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

        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