-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.4, 6.9.2, 6.9.3
-
-
9acdfa404 (dev), 10acb96af (6.10), 8c41427ab (tqtc/lts-6.8)
In the surface graph, calling QValue3DAxis::setReversed(true) does not flip the rendered surface plot. Only the axis labels are reversed, while the data visualization itself remains unchanged.
To reproduce the issue, open the Graph Gallery Qt example project, and in surfacegraphmodifier.cpp, inside the constructor, add m_graph->axisY()->setReversed(true);
SurfaceGraphModifier::SurfaceGraphModifier(Q3DSurfaceWidgetItem *surface, QLabel *label, QObject *parent) : QObject(parent) , m_graph(surface) , m_textField(label) , m_aspectRatio(aspectRatio) { m_graph->setCameraZoomLevel(85.f); m_graph->setCameraPreset(QtGraphs3D::CameraPreset::IsometricRight); m_graph->activeTheme()->setTheme(QGraphsTheme::Theme::MixSeries); m_graph->activeTheme()->setLabelBackgroundVisible(false); m_graph->activeTheme()->setLabelBorderVisible(false); m_graph->setAxisX(new QValue3DAxis); m_graph->setAxisY(new QValue3DAxis); m_graph->setAxisZ(new QValue3DAxis); m_graph->axisY()->setReversed(true); // Not Working properly m_graph->axisZ()->setReversed(true); // Not Working properly
Next, build and run the example project, and observe that the axis labels flip direction correctly, but the surface plot itself remains in the original orientation.
The issue doesn't reproduce with Q3DScatterWidgetItem.
For Gerrit Dashboard: QTBUG-140904 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
683086,2 | Fix support for setReversed in surface graphs | dev | qt/qtgraphs | Status: MERGED | +2 | 0 |
683499,2 | Fix support for setReversed in surface graphs | 6.10 | qt/qtgraphs | Status: MERGED | +2 | 0 |
683621,2 | Fix support for setReversed in surface graphs | tqtc/lts-6.8 | qt/tqtc-qtgraphs | Status: MERGED | +2 | 0 |