Hello!
I’ve been using QQuickVTKItem in our Qt QML application for line plots for a while now and its worked just fine. Though when I try to use markers to overlay them onto a line plot, or to create a scatter plot, the markers do not render (on the plot or the legend). The issue persists outside of our application when using the QtQuickChartsOn3DScene example. Attached is a simplified example (modified directly from QtQuickChartsOn3DScene) displaying just the plot demonstrating that a line plot can be rendered, but markers cannot. Also shows that the chart interactor can still hover over the invisible markers. I also was able to get Markers to properly display using this scatter plot example.
This image shows the unmodified QtQuickChartsOn3DScene example not rendering the markers:
This image shows the modified example rendering a line plot but not the markers and displaying that the invisible markers still have hover capability:
This image displays that the scatter plot example (with no Qt / QML) can render markers properly:
The issue here seems very similar to this discussion topic. Although QQuickVTKItem::setGraphicsApi
looks like it properly sets up the default QSurfaceFormat
through QVTKRenderWindowAdapter::defaultformat
.
From what I’ve tried, the issue seems to be something with Qt/QML QSurfaceFormat
. Though my knowledge of OpenGL / Rendering is limited.
Versions:
Qt: 6.9.1
VTK: v9.5.1
OS Specs: Windows 11 Pro Version 24H2
QtQuickChartsOn3DSceneModified.zip (3.0 KB)
Thanks!