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

The QValue3DAxis::setReversed() function is not working properly in the surface graph.

XMLWordPrintable

    • Windows
    • 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.

       

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

            tokorpip Tomi Korpipää
            mahdi.belila Mehdi Belila
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes