├── .tag
├── examples
├── examples.pro
├── graphs
│ ├── 3d
│ │ ├── axishandling
│ │ │ ├── qmldir
│ │ │ ├── qml
│ │ │ │ └── axishandling
│ │ │ │ │ ├── cube.mesh
│ │ │ │ │ └── cubetexture.png
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── axishandling-example.png
│ │ │ ├── axishandling.pro
│ │ │ └── axishandling.qrc
│ │ ├── bars
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── bars-example.png
│ │ │ ├── bars.qrc
│ │ │ └── bars.pro
│ │ ├── equation
│ │ │ ├── images
│ │ │ │ └── opacitymap.png
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── equation-example.png
│ │ │ ├── equation.qrc
│ │ │ └── equation.pro
│ │ ├── widgetvolumetric
│ │ │ ├── layer_magma.png
│ │ │ ├── layer_water.png
│ │ │ ├── layer_ground.png
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── widgetvolumetric-example.png
│ │ │ ├── widgetvolumetric.qrc
│ │ │ └── widgetvolumetric.pro
│ │ ├── widgetgraphgallery
│ │ │ ├── data
│ │ │ │ ├── pipe.mesh
│ │ │ │ ├── layer_1.png
│ │ │ │ ├── layer_2.png
│ │ │ │ ├── layer_3.png
│ │ │ │ ├── oilrig.mesh
│ │ │ │ ├── refinery.mesh
│ │ │ │ ├── maptexture.jpg
│ │ │ │ ├── topography.png
│ │ │ │ └── narrowarrow.mesh
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── widgetgraphgallery-example.png
│ │ │ ├── widgetgraphgallery.qrc
│ │ │ ├── scattergraphwidget.cpp
│ │ │ ├── surfacegraphwidget.cpp
│ │ │ ├── scattergraphwidget.h
│ │ │ ├── surfacegraphwidget.h
│ │ │ ├── bargraph.h
│ │ │ ├── scattergraph.h
│ │ │ ├── surfacegraph.h
│ │ │ └── topographicseries.h
│ │ ├── scatter
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── scatter-example.png
│ │ │ ├── scatter.pro
│ │ │ ├── images
│ │ │ │ ├── theme.svg
│ │ │ │ ├── flatten.svg
│ │ │ │ ├── shadow.svg
│ │ │ │ ├── background.svg
│ │ │ │ ├── camera.svg
│ │ │ │ └── background_hide.svg
│ │ │ └── scatter.qrc
│ │ ├── surfacegallery
│ │ │ ├── qml
│ │ │ │ └── surfacegallery
│ │ │ │ │ └── heightmap.png
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── surfacegallery-example.png
│ │ │ ├── surfacegallery.qrc
│ │ │ └── surfacegallery.pro
│ │ ├── 3d.pro
│ │ └── examples.pri
│ ├── 2d
│ │ ├── 2d.pro
│ │ ├── cockpit
│ │ │ ├── qml
│ │ │ │ └── cockpit
│ │ │ │ │ ├── bar.frag.qsb
│ │ │ │ │ ├── plane-fro.png
│ │ │ │ │ ├── airplane-ico.png
│ │ │ │ │ ├── pitchbar.frag.qsb
│ │ │ │ │ ├── circleMarker.frag.qsb
│ │ │ │ │ ├── bar.frag
│ │ │ │ │ ├── circleMarker.frag
│ │ │ │ │ └── pitchbar.frag
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── cockpit-example.png
│ │ │ ├── cockpit.pro
│ │ │ ├── cockpit.qrc
│ │ │ └── main.cpp
│ │ ├── hellographs
│ │ │ ├── hellographs.qrc
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── hellographs-example.png
│ │ │ ├── hellographs.pro
│ │ │ └── main.cpp
│ │ ├── quickwidgetgraphs
│ │ │ ├── doc
│ │ │ │ └── images
│ │ │ │ │ └── quickwidgetgraphs-example.png
│ │ │ ├── quickwidgetgraphs.pro
│ │ │ ├── main.cpp
│ │ │ └── piewidget.h
│ │ ├── examples.pri
│ │ └── CMakeLists.txt
│ └── graphprinting
│ │ ├── doc
│ │ └── images
│ │ │ └── graphprinting-example.png
│ │ ├── qml
│ │ └── graphprinting
│ │ │ ├── flatten_square_fill.svg
│ │ │ ├── folder.svg
│ │ │ ├── flatten.svg
│ │ │ ├── documents_fill.svg
│ │ │ ├── folder_fill.svg
│ │ │ └── box_left_fill.svg
│ │ └── graphprinter.h
└── CMakeLists.txt
├── .gitreview
├── src
├── doc
│ ├── images
│ │ ├── graphs2d-area.png
│ │ ├── graphs2d-line.png
│ │ ├── graphs2d-scatter.png
│ │ ├── graphs2d-spline.png
│ │ ├── q3dbars-minimal.png
│ │ ├── graphs2d-area-graph.png
│ │ ├── graphs2d-bar-graph.png
│ │ ├── graphs2d-line-gaps.png
│ │ ├── graphs2d-line-graph.png
│ │ ├── graphs2d-pie-graph.png
│ │ ├── graphsview-minimal.png
│ │ ├── q3dscatter-minimal.png
│ │ ├── q3dsurface-minimal.png
│ │ ├── graphs2d-donut-graph.png
│ │ ├── graphs2d-scatter-graph.png
│ │ ├── graphs2d-spline-graph.png
│ │ ├── graphs2d-subpieslice.png
│ │ └── q3dbars-qtquick3d-integration.png
│ └── snippets
│ │ └── doc_src_qtgraphs.pro
├── graphs3d
│ ├── engine
│ │ ├── meshes
│ │ │ ├── arrowMesh.mesh
│ │ │ ├── barMesh.mesh
│ │ │ ├── coneMesh.mesh
│ │ │ ├── planeMesh.mesh
│ │ │ ├── barMeshFull.mesh
│ │ │ ├── minimalMesh.mesh
│ │ │ ├── octagonMesh.mesh
│ │ │ ├── pyramidMesh.mesh
│ │ │ ├── sphereMesh.mesh
│ │ │ ├── backgroundMesh.mesh
│ │ │ ├── barMeshSmooth.mesh
│ │ │ ├── bevelBarMesh.mesh
│ │ │ ├── coneMeshFull.mesh
│ │ │ ├── coneMeshSmooth.mesh
│ │ │ ├── cylinderMesh.mesh
│ │ │ ├── arrowMeshSmooth.mesh
│ │ │ ├── bevelBarMeshFull.mesh
│ │ │ ├── cylinderMeshFull.mesh
│ │ │ ├── pyramidMeshFull.mesh
│ │ │ ├── sphereMeshSmooth.mesh
│ │ │ ├── barMeshSmoothFull.mesh
│ │ │ ├── bevelBarMeshSmooth.mesh
│ │ │ ├── coneMeshSmoothFull.mesh
│ │ │ ├── cylinderMeshSmooth.mesh
│ │ │ ├── minimalMeshSmooth.mesh
│ │ │ ├── pyramidMeshSmooth.mesh
│ │ │ ├── backgroundNoFloorMesh.mesh
│ │ │ ├── pyramidMeshSmoothFull.mesh
│ │ │ ├── bevelBarMeshSmoothFull.mesh
│ │ │ └── cylinderMeshSmoothFull.mesh
│ │ └── shaders
│ │ │ ├── spline.frag
│ │ │ ├── position.vert
│ │ │ ├── scatter.vert
│ │ │ ├── objectgradient.vert
│ │ │ ├── objectgradientinstancing.vert
│ │ │ ├── surfaceSlice.vert
│ │ │ ├── 3dsliceframes.frag
│ │ │ ├── scatterinstancing.vert
│ │ │ ├── barsinstancing.vert
│ │ │ ├── surfaceGrid.vert
│ │ │ └── surfaceGrid.frag
│ ├── qml
│ │ ├── designer
│ │ │ ├── images
│ │ │ │ ├── bars3d-icon.png
│ │ │ │ ├── bars3d-icon16.png
│ │ │ │ ├── scatter3d-icon.png
│ │ │ │ ├── surface3d-icon.png
│ │ │ │ ├── scatter3d-icon16.png
│ │ │ │ └── surface3d-icon16.png
│ │ │ ├── default
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ ├── Scatter3D.qml
│ │ │ │ ├── Bars3D.qml
│ │ │ │ └── Surface3D.qml
│ │ │ └── CMakeLists.txt
│ │ ├── resources
│ │ │ ├── SurfaceShadowNoTex.qml
│ │ │ ├── DatapointCube.qml
│ │ │ ├── DatapointSphere.qml
│ │ │ ├── ObjectGradientMaterial.qml
│ │ │ ├── ObjectGradientMaterialInstancing.qml
│ │ │ ├── SurfaceSliceMaterial.qml
│ │ │ ├── VolumeFrameMaterial.qml
│ │ │ ├── GridSurfaceMaterial.qml
│ │ │ ├── SplineMaterial.qml
│ │ │ ├── VolumeMaterial.qml
│ │ │ ├── VolumeLowDefMaterial.qml
│ │ │ └── VolumeSliceMaterial.qml
│ │ └── gradientholder_p.h
│ ├── widget
│ │ ├── doc
│ │ │ └── images
│ │ │ │ ├── q3dbars-minimal.png
│ │ │ │ ├── q3dscatter-minimal.png
│ │ │ │ └── q3dsurface-minimal.png
│ │ ├── qml
│ │ │ └── dummy.qml
│ │ ├── qgraphswidgetsglobal.h
│ │ ├── q3dscatterwidgetitem_p.h
│ │ ├── q3dsurfacewidgetitem_p.h
│ │ └── q3dbarswidgetitem_p.h
│ └── utils
│ │ ├── qutils.h
│ │ └── qgraphs3dlogging.cpp
├── graphs2d
│ ├── qml
│ │ └── designer
│ │ │ ├── images
│ │ │ ├── barseries-icon.png
│ │ │ ├── pieseries-icon.png
│ │ │ ├── areaseries-icon.png
│ │ │ ├── barseries-icon16.png
│ │ │ ├── lineseries-icon.png
│ │ │ ├── pieseries-icon16.png
│ │ │ ├── areaseries-icon16.png
│ │ │ ├── lineseries-icon16.png
│ │ │ ├── scatterseries-icon.png
│ │ │ ├── splineseries-icon.png
│ │ │ ├── splineseries-icon16.png
│ │ │ └── scatterseries-icon16.png
│ │ │ ├── default
│ │ │ ├── CMakeLists.txt
│ │ │ ├── LineSeries.qml
│ │ │ ├── ScatterSeries.qml
│ │ │ ├── SplineSeries.qml
│ │ │ ├── PieSeries.qml
│ │ │ ├── BarSeries.qml
│ │ │ └── AreaSeries.qml
│ │ │ └── CMakeLists.txt
│ ├── customchart
│ │ └── qcustomseriesdata.cpp
│ ├── scatterchart
│ │ └── qscatterseries_p.h
│ ├── data
│ │ ├── lineshaderhorizontal.vert
│ │ └── lineshadervertical.vert
│ └── xychart
│ │ └── qxypoint_p.h
└── common
│ ├── CMakeLists.txt
│ ├── utils
│ ├── CMakeLists.txt
│ └── commonutils_p.h
│ ├── global
│ ├── CMakeLists.txt
│ └── qgraphsglobal.h
│ └── theme
│ ├── CMakeLists.txt
│ └── qquickgraphscolor.cpp
├── tests
├── manual
│ ├── barstest
│ │ ├── shuttle.png
│ │ ├── shuttle.mesh
│ │ ├── barstest.qrc
│ │ ├── barstest.pro
│ │ ├── sliderwrapper.cpp
│ │ ├── buttonwrapper.cpp
│ │ ├── buttonwrapper.h
│ │ └── sliderwrapper.h
│ ├── qmltheme
│ │ ├── layer_1.png
│ │ ├── qmltheme.qrc
│ │ ├── qmltheme.pro
│ │ └── CMakeLists.txt
│ ├── qmlgradient
│ │ ├── crater.png
│ │ ├── qml.qrc
│ │ └── CMakeLists.txt
│ ├── volumetrictest
│ │ ├── logo.png
│ │ ├── cubeFilledFlat.mesh
│ │ ├── logo_no_padding.png
│ │ ├── volumetrictest.qrc
│ │ └── volumetrictest.pro
│ ├── multigraphs
│ │ ├── australia.png
│ │ ├── multigraphs.qrc
│ │ ├── multigraphs.pro
│ │ └── CMakeLists.txt
│ ├── surfacetest
│ │ ├── Heightmap.png
│ │ ├── mapimage.png
│ │ ├── opacitymask.png
│ │ ├── surfacetest.qrc
│ │ ├── surfacetest.pro
│ │ ├── buttonwrapper.cpp
│ │ ├── checkboxwrapper.cpp
│ │ ├── buttonwrapper.h
│ │ └── checkboxwrapper.h
│ ├── qmlbarscatter
│ │ ├── images
│ │ │ └── img.png
│ │ ├── cpuusageupdater.cpp
│ │ ├── processorinfo.h
│ │ ├── scatterseries.cpp
│ │ ├── scatterseries.h
│ │ ├── barseries.cpp
│ │ ├── barseries.h
│ │ ├── cpuusageupdater.h
│ │ └── processorinfo.cpp
│ ├── qmlmultiaxis3d
│ │ └── heightmap.jpg
│ ├── qmlsurfacelayers
│ │ ├── layer_1.png
│ │ ├── layer_2.png
│ │ ├── layer_3.png
│ │ ├── qmlsurfacelayers.qrc
│ │ └── qmlsurfacelayers.pro
│ ├── renderslicetoimage
│ │ ├── renderslicetoimage.qrc
│ │ ├── renderslicetoimage.pro
│ │ ├── bargraphwidget.cpp
│ │ ├── surfacegraphwidget.cpp
│ │ ├── bargraphwidget.h
│ │ └── surfacegraphwidget.h
│ ├── qmlheightmap
│ │ ├── gradientGRAY8.png
│ │ ├── gradientRGB16.png
│ │ ├── gradientRGB8.png
│ │ ├── gradientGRAY16.png
│ │ └── qml.qrc
│ ├── qmlrenderslicetoimage
│ │ ├── layer_1.png
│ │ ├── layer_2.png
│ │ ├── layer_3.png
│ │ ├── qmlrenderslicetoimage.pro
│ │ └── qmlrenderslicetoimage.qrc
│ ├── rotations
│ │ ├── mesh
│ │ │ ├── largesphere.mesh
│ │ │ └── narrowarrow.mesh
│ │ ├── rotations.qrc
│ │ ├── rotations.pro
│ │ ├── main.cpp
│ │ ├── magneticfield.h
│ │ └── customitemrotation.h
│ ├── custominput
│ │ ├── custominput.qrc
│ │ ├── custominput.pro
│ │ ├── custominputhandler.h
│ │ └── CMakeLists.txt
│ ├── qmlinjection
│ │ └── qml
│ │ │ └── qmlinjection
│ │ │ ├── plane.mesh
│ │ │ ├── australia.png
│ │ │ ├── layer_1.png
│ │ │ └── australiaSatellite.jpg
│ ├── qmlperf
│ │ ├── qmlperf.qrc
│ │ ├── qmlperf.pro
│ │ └── CMakeLists.txt
│ ├── qmlqtquick3dintegration
│ │ ├── video
│ │ │ └── video.mp4
│ │ ├── qmlqtquick3dintegration.pro
│ │ ├── qmlqtquick3dintegration.qrc
│ │ └── qml
│ │ │ └── qmlqtquick3dintegration
│ │ │ └── Axes.qml
│ ├── qmlvolume
│ │ ├── qmlvolume.qrc
│ │ ├── qmlvolume.pro
│ │ ├── datasource.h
│ │ └── CMakeLists.txt
│ ├── qmltestbed
│ │ ├── qml
│ │ │ └── qmltestbed
│ │ │ │ ├── images
│ │ │ │ ├── bar_fg_c.png
│ │ │ │ ├── bar_fg_l.png
│ │ │ │ ├── bar_fg_r.png
│ │ │ │ ├── bar_mask.png
│ │ │ │ ├── arrow_icon.png
│ │ │ │ ├── bar_mask_c.png
│ │ │ │ ├── bar_mask_l.png
│ │ │ │ ├── bar_mask_r.png
│ │ │ │ ├── happy_box.png
│ │ │ │ ├── icon_settings.png
│ │ │ │ └── Sevillana-Regular.ttf
│ │ │ │ ├── BarsEffect
│ │ │ │ └── export
│ │ │ │ │ ├── bar_mask.png
│ │ │ │ │ ├── barseffect.frag.qsb
│ │ │ │ │ └── barseffect.vert.qsb
│ │ │ │ ├── CustomLabel.qml
│ │ │ │ └── CppBarSeries.qml
│ │ ├── qmltestbed.pro
│ │ ├── barsetgenerator.cpp
│ │ ├── barsetgenerator.h
│ │ ├── main.cpp
│ │ ├── custombarseries.h
│ │ └── candlestick.h
│ ├── qmldynamicdata
│ │ ├── qmldynamicdata.qrc
│ │ ├── qmldynamicdata.pro
│ │ └── CMakeLists.txt
│ ├── qmlbenchmark2d
│ │ ├── qml.qrc
│ │ ├── resultsio.h
│ │ ├── datasource.h
│ │ └── chartsdatasource.h
│ ├── itemmodeltest
│ │ ├── itemmodeltest.pro
│ │ └── CMakeLists.txt
│ ├── qmlmultitest
│ │ ├── qmlmultitest.qrc
│ │ ├── qmlmultitest.pro
│ │ └── CMakeLists.txt
│ ├── qmlcustominput
│ │ ├── qmlcustominput.qrc
│ │ ├── qmlcustominput.pro
│ │ └── CMakeLists.txt
│ ├── scattertest
│ │ ├── scattertest.pro
│ │ └── CMakeLists.txt
│ ├── directional
│ │ ├── directional.pro
│ │ └── CMakeLists.txt
│ ├── qmllegend
│ │ ├── qmllegend.qrc
│ │ ├── qmllegend.pro
│ │ └── CMakeLists.txt
│ ├── minimalbars
│ │ ├── minimalbars.pro
│ │ └── CMakeLists.txt
│ ├── minimalscatter
│ │ ├── minimalscatter.pro
│ │ └── CMakeLists.txt
│ ├── minimalsurface
│ │ ├── minimalsurface.pro
│ │ └── CMakeLists.txt
│ ├── tests.pri
│ ├── itemmodel
│ │ ├── itemmodel.pro
│ │ └── CMakeLists.txt
│ ├── qml2dpiegraph
│ │ └── main.cpp
│ ├── qmlspline
│ │ ├── CMakeLists.txt
│ │ └── splinegen.h
│ ├── qmlvectorfield
│ │ └── CMakeLists.txt
│ ├── qmlline
│ │ └── CMakeLists.txt
│ ├── qmlsubpieslices
│ │ └── CMakeLists.txt
│ ├── qmlgradientareas
│ │ └── CMakeLists.txt
│ ├── qmlnegativebarsets
│ │ └── CMakeLists.txt
│ ├── qmlmultiplebarseries
│ │ └── CMakeLists.txt
│ └── qml2dperformance
│ │ └── CMakeLists.txt
├── auto
│ ├── qmltest
│ │ ├── customitem.mesh
│ │ ├── customtexture.jpg
│ │ └── CMakeLists.txt
│ ├── cpptest
│ │ ├── qgcustom
│ │ │ ├── customitem.mesh
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface-series
│ │ │ ├── customtexture.jpg
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface-heightproxy
│ │ │ ├── customtexture.jpg
│ │ │ └── CMakeLists.txt
│ │ ├── qgtheme
│ │ │ └── CMakeLists.txt
│ │ ├── qgaxis-value
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars-proxy
│ │ │ └── CMakeLists.txt
│ │ ├── qgaxis-category
│ │ │ └── CMakeLists.txt
│ │ ├── qgaxis-logvalue
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars-series
│ │ │ └── CMakeLists.txt
│ │ ├── qgscatter-proxy
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface-proxy
│ │ │ └── CMakeLists.txt
│ │ ├── qgcustom-volume
│ │ │ └── CMakeLists.txt
│ │ ├── qgscatter-series
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars-seriesaxis
│ │ │ └── CMakeLists.txt
│ │ ├── qginput
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface-seriesaxis
│ │ │ └── CMakeLists.txt
│ │ ├── qgscatter-modelproxy
│ │ │ └── CMakeLists.txt
│ │ ├── qgcustom-label
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars
│ │ │ └── CMakeLists.txt
│ │ ├── qgscene
│ │ │ └── CMakeLists.txt
│ │ ├── qgscatter
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface
│ │ │ └── CMakeLists.txt
│ │ ├── qgspline-series
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars-modelproxy
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface-modelproxy
│ │ │ └── CMakeLists.txt
│ │ ├── qgsurface-modelproxy-nan
│ │ │ └── CMakeLists.txt
│ │ └── common
│ │ │ └── cpptestutil.h
│ ├── cpp2dtest
│ │ ├── qgxymodelmapper
│ │ │ └── CMakeLists.txt
│ │ ├── qgbarmodelmapper
│ │ │ └── CMakeLists.txt
│ │ ├── qgpiemodelmapper
│ │ │ └── CMakeLists.txt
│ │ ├── qgarea
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars
│ │ │ └── CMakeLists.txt
│ │ ├── qglines
│ │ │ └── CMakeLists.txt
│ │ ├── qgbars-set
│ │ │ └── CMakeLists.txt
│ │ ├── qgcustom
│ │ │ └── CMakeLists.txt
│ │ ├── qgscatter
│ │ │ └── CMakeLists.txt
│ │ ├── qgsplines
│ │ │ └── CMakeLists.txt
│ │ ├── qgxychart
│ │ │ └── CMakeLists.txt
│ │ ├── qgpieslice
│ │ │ └── CMakeLists.txt
│ │ ├── qgpieseries
│ │ │ └── CMakeLists.txt
│ │ ├── qgtheme-graph
│ │ │ └── CMakeLists.txt
│ │ ├── qgaxis-abstract
│ │ │ └── CMakeLists.txt
│ │ ├── qgaxis-datetime
│ │ │ └── CMakeLists.txt
│ │ ├── qgtheme-series
│ │ │ └── CMakeLists.txt
│ │ ├── qgaxis-barcategory
│ │ │ └── CMakeLists.txt
│ │ └── qgaxis-value
│ │ │ └── CMakeLists.txt
│ ├── qml2dtest
│ │ └── CMakeLists.txt
│ └── CMakeLists.txt
├── CMakeLists.txt
└── baseline
│ ├── CMakeLists.txt
│ ├── scenegrabber
│ └── CMakeLists.txt
│ └── graphs
│ └── CMakeLists.txt
├── .cmake.conf
├── dependencies.yaml
├── configure.cmake
├── LICENSES
└── LicenseRef-Qt-Commercial.txt
├── sync.profile
└── coin
└── module_config.yaml
/.tag:
--------------------------------------------------------------------------------
1 | ff8c905145452e5ba2bd8a5f874ac75162fcde04
2 |
--------------------------------------------------------------------------------
/examples/examples.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = subdirs
2 | SUBDIRS += graphs/2d
3 | SUBDIRS += graphs/3d
4 |
--------------------------------------------------------------------------------
/examples/graphs/3d/axishandling/qmldir:
--------------------------------------------------------------------------------
1 | module AxisHandling
2 | plugin customformatterplugin
3 |
--------------------------------------------------------------------------------
/.gitreview:
--------------------------------------------------------------------------------
1 | [gerrit]
2 | host=codereview.qt-project.org
3 | project=qt/qtgraphs
4 | defaultbranch=dev
5 |
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-area.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-area.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-line.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-line.png
--------------------------------------------------------------------------------
/tests/manual/barstest/shuttle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/barstest/shuttle.png
--------------------------------------------------------------------------------
/tests/manual/qmltheme/layer_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltheme/layer_1.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-scatter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-scatter.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-spline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-spline.png
--------------------------------------------------------------------------------
/src/doc/images/q3dbars-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/q3dbars-minimal.png
--------------------------------------------------------------------------------
/tests/auto/qmltest/customitem.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/auto/qmltest/customitem.mesh
--------------------------------------------------------------------------------
/tests/auto/qmltest/customtexture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/auto/qmltest/customtexture.jpg
--------------------------------------------------------------------------------
/tests/manual/barstest/shuttle.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/barstest/shuttle.mesh
--------------------------------------------------------------------------------
/tests/manual/qmlgradient/crater.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlgradient/crater.png
--------------------------------------------------------------------------------
/tests/manual/volumetrictest/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/volumetrictest/logo.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-area-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-area-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-bar-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-bar-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-line-gaps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-line-gaps.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-line-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-line-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-pie-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-pie-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphsview-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphsview-minimal.png
--------------------------------------------------------------------------------
/src/doc/images/q3dscatter-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/q3dscatter-minimal.png
--------------------------------------------------------------------------------
/src/doc/images/q3dsurface-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/q3dsurface-minimal.png
--------------------------------------------------------------------------------
/tests/manual/multigraphs/australia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/multigraphs/australia.png
--------------------------------------------------------------------------------
/tests/manual/surfacetest/Heightmap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/surfacetest/Heightmap.png
--------------------------------------------------------------------------------
/tests/manual/surfacetest/mapimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/surfacetest/mapimage.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-donut-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-donut-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-scatter-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-scatter-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-spline-graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-spline-graph.png
--------------------------------------------------------------------------------
/src/doc/images/graphs2d-subpieslice.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/graphs2d-subpieslice.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/arrowMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/arrowMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/barMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/barMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/coneMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/coneMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/planeMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/planeMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/spline.frag:
--------------------------------------------------------------------------------
1 | void MAIN(){
2 | }
3 |
4 | void POST_PROCESS() {
5 | COLOR_SUM = color;
6 | }
7 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/images/img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlbarscatter/images/img.png
--------------------------------------------------------------------------------
/tests/manual/qmlmultiaxis3d/heightmap.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlmultiaxis3d/heightmap.jpg
--------------------------------------------------------------------------------
/tests/manual/qmlsurfacelayers/layer_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlsurfacelayers/layer_1.png
--------------------------------------------------------------------------------
/tests/manual/qmlsurfacelayers/layer_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlsurfacelayers/layer_2.png
--------------------------------------------------------------------------------
/tests/manual/qmlsurfacelayers/layer_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlsurfacelayers/layer_3.png
--------------------------------------------------------------------------------
/tests/manual/renderslicetoimage/renderslicetoimage.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/opacitymask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/surfacetest/opacitymask.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/barMeshFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/barMeshFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/minimalMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/minimalMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/octagonMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/octagonMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/pyramidMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/pyramidMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/sphereMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/sphereMesh.mesh
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgcustom/customitem.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/auto/cpptest/qgcustom/customitem.mesh
--------------------------------------------------------------------------------
/tests/manual/qmlheightmap/gradientGRAY8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlheightmap/gradientGRAY8.png
--------------------------------------------------------------------------------
/tests/manual/qmlheightmap/gradientRGB16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlheightmap/gradientRGB16.png
--------------------------------------------------------------------------------
/tests/manual/qmlheightmap/gradientRGB8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlheightmap/gradientRGB8.png
--------------------------------------------------------------------------------
/examples/graphs/2d/2d.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = subdirs
2 | qtHaveModule(quick) {
3 | SUBDIRS += hellographs
4 | SUBDIRS += cockpit
5 | }
6 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/backgroundMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/backgroundMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/barMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/barMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/bevelBarMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/bevelBarMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/coneMeshFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/coneMeshFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/coneMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/coneMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/cylinderMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/cylinderMesh.mesh
--------------------------------------------------------------------------------
/tests/manual/qmlheightmap/gradientGRAY16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlheightmap/gradientGRAY16.png
--------------------------------------------------------------------------------
/tests/manual/qmlrenderslicetoimage/layer_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlrenderslicetoimage/layer_1.png
--------------------------------------------------------------------------------
/tests/manual/qmlrenderslicetoimage/layer_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlrenderslicetoimage/layer_2.png
--------------------------------------------------------------------------------
/tests/manual/qmlrenderslicetoimage/layer_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlrenderslicetoimage/layer_3.png
--------------------------------------------------------------------------------
/tests/manual/rotations/mesh/largesphere.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/rotations/mesh/largesphere.mesh
--------------------------------------------------------------------------------
/tests/manual/rotations/mesh/narrowarrow.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/rotations/mesh/narrowarrow.mesh
--------------------------------------------------------------------------------
/src/doc/images/q3dbars-qtquick3d-integration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/doc/images/q3dbars-qtquick3d-integration.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/arrowMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/arrowMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/bevelBarMeshFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/bevelBarMeshFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/cylinderMeshFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/cylinderMeshFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/pyramidMeshFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/pyramidMeshFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/sphereMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/sphereMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/images/bars3d-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/qml/designer/images/bars3d-icon.png
--------------------------------------------------------------------------------
/tests/manual/volumetrictest/cubeFilledFlat.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/volumetrictest/cubeFilledFlat.mesh
--------------------------------------------------------------------------------
/tests/manual/volumetrictest/logo_no_padding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/volumetrictest/logo_no_padding.png
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/bar.frag.qsb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/cockpit/qml/cockpit/bar.frag.qsb
--------------------------------------------------------------------------------
/examples/graphs/3d/bars/doc/images/bars-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/bars/doc/images/bars-example.png
--------------------------------------------------------------------------------
/examples/graphs/3d/equation/images/opacitymap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/equation/images/opacitymap.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetvolumetric/layer_magma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetvolumetric/layer_magma.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetvolumetric/layer_water.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetvolumetric/layer_water.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/barseries-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/barseries-icon.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/pieseries-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/pieseries-icon.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/barMeshSmoothFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/barMeshSmoothFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/bevelBarMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/bevelBarMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/coneMeshSmoothFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/coneMeshSmoothFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/cylinderMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/cylinderMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/minimalMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/minimalMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/pyramidMeshSmooth.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/pyramidMeshSmooth.mesh
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/images/bars3d-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/qml/designer/images/bars3d-icon16.png
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/images/scatter3d-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/qml/designer/images/scatter3d-icon.png
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/images/surface3d-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/qml/designer/images/surface3d-icon.png
--------------------------------------------------------------------------------
/src/graphs3d/widget/doc/images/q3dbars-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/widget/doc/images/q3dbars-minimal.png
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/plane-fro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/cockpit/qml/cockpit/plane-fro.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/pipe.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/pipe.mesh
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetvolumetric/layer_ground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetvolumetric/layer_ground.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/areaseries-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/areaseries-icon.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/barseries-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/barseries-icon16.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/lineseries-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/lineseries-icon.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/pieseries-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/pieseries-icon16.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/backgroundNoFloorMesh.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/backgroundNoFloorMesh.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/pyramidMeshSmoothFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/pyramidMeshSmoothFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/images/scatter3d-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/qml/designer/images/scatter3d-icon16.png
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/images/surface3d-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/qml/designer/images/surface3d-icon16.png
--------------------------------------------------------------------------------
/src/graphs3d/widget/doc/images/q3dscatter-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/widget/doc/images/q3dscatter-minimal.png
--------------------------------------------------------------------------------
/src/graphs3d/widget/doc/images/q3dsurface-minimal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/widget/doc/images/q3dsurface-minimal.png
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-series/customtexture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/auto/cpptest/qgsurface-series/customtexture.jpg
--------------------------------------------------------------------------------
/tests/manual/custominput/custominput.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | data/data.txt
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/multigraphs/multigraphs.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | australia.png
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/qmlinjection/qml/qmlinjection/plane.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlinjection/qml/qmlinjection/plane.mesh
--------------------------------------------------------------------------------
/tests/manual/qmlperf/qmlperf.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlperf/main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/qmlqtquick3dintegration/video/video.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlqtquick3dintegration/video/video.mp4
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/airplane-ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/cockpit/qml/cockpit/airplane-ico.png
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/pitchbar.frag.qsb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/cockpit/qml/cockpit/pitchbar.frag.qsb
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/layer_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/layer_1.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/layer_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/layer_2.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/layer_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/layer_3.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/oilrig.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/oilrig.mesh
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/refinery.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/refinery.mesh
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/areaseries-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/areaseries-icon16.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/lineseries-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/lineseries-icon16.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/scatterseries-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/scatterseries-icon.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/splineseries-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/splineseries-icon.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/splineseries-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/splineseries-icon16.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/bevelBarMeshSmoothFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/bevelBarMeshSmoothFull.mesh
--------------------------------------------------------------------------------
/src/graphs3d/engine/meshes/cylinderMeshSmoothFull.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs3d/engine/meshes/cylinderMeshSmoothFull.mesh
--------------------------------------------------------------------------------
/tests/manual/qmlgradient/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlgradient/main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/qmlinjection/qml/qmlinjection/australia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlinjection/qml/qmlinjection/australia.png
--------------------------------------------------------------------------------
/tests/manual/qmlinjection/qml/qmlinjection/layer_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlinjection/qml/qmlinjection/layer_1.png
--------------------------------------------------------------------------------
/tests/manual/qmlvolume/qmlvolume.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlvolume/main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/doc/images/cockpit-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/cockpit/doc/images/cockpit-example.png
--------------------------------------------------------------------------------
/examples/graphs/3d/axishandling/qml/axishandling/cube.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/axishandling/qml/axishandling/cube.mesh
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/doc/images/scatter-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/scatter/doc/images/scatter-example.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/maptexture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/maptexture.jpg
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/topography.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/topography.png
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/images/scatterseries-icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/src/graphs2d/qml/designer/images/scatterseries-icon16.png
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-heightproxy/customtexture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/auto/cpptest/qgsurface-heightproxy/customtexture.jpg
--------------------------------------------------------------------------------
/tests/manual/qmlheightmap/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlheightmap/qml/main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_fg_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_fg_c.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_fg_l.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_fg_l.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_fg_r.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_fg_r.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask.png
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/circleMarker.frag.qsb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/cockpit/qml/cockpit/circleMarker.frag.qsb
--------------------------------------------------------------------------------
/examples/graphs/3d/equation/doc/images/equation-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/equation/doc/images/equation-example.png
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/data/narrowarrow.mesh:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/data/narrowarrow.mesh
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/arrow_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/arrow_icon.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask_c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask_c.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask_l.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask_l.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask_r.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/bar_mask_r.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/happy_box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/happy_box.png
--------------------------------------------------------------------------------
/examples/graphs/2d/hellographs/hellographs.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/hellographs/main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/qmldynamicdata/qmldynamicdata.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmldynamicdata/main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/icon_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/icon_settings.png
--------------------------------------------------------------------------------
/examples/graphs/2d/hellographs/doc/images/hellographs-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/hellographs/doc/images/hellographs-example.png
--------------------------------------------------------------------------------
/examples/graphs/3d/axishandling/qml/axishandling/cubetexture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/axishandling/qml/axishandling/cubetexture.png
--------------------------------------------------------------------------------
/examples/graphs/3d/surfacegallery/qml/surfacegallery/heightmap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/surfacegallery/qml/surfacegallery/heightmap.png
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/doc/images/graphprinting-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/graphprinting/doc/images/graphprinting-example.png
--------------------------------------------------------------------------------
/tests/manual/qmlinjection/qml/qmlinjection/australiaSatellite.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmlinjection/qml/qmlinjection/australiaSatellite.jpg
--------------------------------------------------------------------------------
/examples/graphs/3d/axishandling/doc/images/axishandling-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/axishandling/doc/images/axishandling-example.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/position.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 |
3 | void MAIN() {
4 | POSITION = MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
5 | pos = VERTEX;
6 | }
7 |
--------------------------------------------------------------------------------
/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | if(QT_BUILD_STANDALONE_TESTS)
5 | endif()
6 | qt_build_tests()
7 |
--------------------------------------------------------------------------------
/tests/manual/barstest/barstest.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | shuttle.mesh
4 | shuttle.png
5 |
6 |
7 |
--------------------------------------------------------------------------------
/tests/manual/qmlbenchmark2d/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | ChartsTest1.qml
4 | Main.qml
5 |
6 |
7 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/images/Sevillana-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/images/Sevillana-Regular.ttf
--------------------------------------------------------------------------------
/examples/graphs/3d/surfacegallery/doc/images/surfacegallery-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/surfacegallery/doc/images/surfacegallery-example.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/scatter.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 |
3 | void MAIN()
4 | {
5 | pos = VERTEX;
6 | POSITION = MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
7 | }
8 |
--------------------------------------------------------------------------------
/tests/manual/itemmodeltest/itemmodeltest.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | QT += widgets
8 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/BarsEffect/export/bar_mask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/BarsEffect/export/bar_mask.png
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/objectgradient.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 |
3 | void MAIN()
4 | {
5 | pos = VERTEX;
6 | POSITION = MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
7 | }
8 |
--------------------------------------------------------------------------------
/tests/manual/qmltheme/qmltheme.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmltheme/main.qml
4 | layer_1.png
5 |
6 |
7 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetvolumetric/doc/images/widgetvolumetric-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetvolumetric/doc/images/widgetvolumetric-example.png
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/BarsEffect/export/barseffect.frag.qsb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/BarsEffect/export/barseffect.frag.qsb
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/BarsEffect/export/barseffect.vert.qsb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/tests/manual/qmltestbed/qml/qmltestbed/BarsEffect/export/barseffect.vert.qsb
--------------------------------------------------------------------------------
/examples/graphs/2d/quickwidgetgraphs/doc/images/quickwidgetgraphs-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/2d/quickwidgetgraphs/doc/images/quickwidgetgraphs-example.png
--------------------------------------------------------------------------------
/src/doc/snippets/doc_src_qtgraphs.pro:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #! [0]
5 | QT += graphs
6 | #! [0]
7 |
--------------------------------------------------------------------------------
/tests/manual/rotations/rotations.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | mesh/narrowarrow.mesh
4 | mesh/largesphere.mesh
5 |
6 |
7 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/doc/images/widgetgraphgallery-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qt/qtgraphs/dev/examples/graphs/3d/widgetgraphgallery/doc/images/widgetgraphgallery-example.png
--------------------------------------------------------------------------------
/src/common/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | add_subdirectory(utils)
5 | add_subdirectory(theme)
6 | add_subdirectory(global)
7 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/objectgradientinstancing.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 |
3 | void MAIN()
4 | {
5 | pos = VERTEX;
6 | POSITION = INSTANCE_MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
7 | }
8 |
--------------------------------------------------------------------------------
/tests/manual/qmlmultitest/qmlmultitest.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlmultitest/Data.qml
4 | qml/qmlmultitest/main.qml
5 |
6 |
7 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/surfacetest.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | Heightmap.png
4 | mapimage.png
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/common/utils/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_extend_target(Graphs
5 | SOURCES
6 | commonutils.cpp commonutils_p.h
7 | )
8 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/surfaceSlice.vert:
--------------------------------------------------------------------------------
1 | void MAIN()
2 | {
3 | NORMAL = vec3(0.0, 0.0, 1.0);
4 | if (isColumn)
5 | NORMAL.z = 1.0;
6 | POSITION = MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
7 | }
8 |
--------------------------------------------------------------------------------
/tests/manual/qmlcustominput/qmlcustominput.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlcustominput/Data.qml
4 | qml/qmlcustominput/main.qml
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/graphs3d/widget/qml/dummy.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | Item {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/tests/manual/scattertest/scattertest.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp scatterchart.cpp
6 | HEADERS += scatterchart.h
7 |
8 | QT += widgets
9 |
--------------------------------------------------------------------------------
/examples/graphs/3d/bars/bars.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/bars/Axes.qml
4 | qml/bars/Data.qml
5 | qml/bars/main.qml
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/common/global/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_extend_target(Graphs
5 | SOURCES
6 | qgraphsglobal_p.h
7 | qgraphsglobal.h
8 | )
9 |
--------------------------------------------------------------------------------
/tests/manual/directional/directional.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp scatterdatamodifier.cpp
6 | HEADERS += scatterdatamodifier.h
7 |
8 | QT += widgets
9 |
--------------------------------------------------------------------------------
/tests/manual/barstest/barstest.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp chart.cpp
6 | HEADERS += chart.h
7 |
8 | RESOURCES += barstest.qrc
9 |
10 | QT += widgets
11 |
--------------------------------------------------------------------------------
/tests/manual/volumetrictest/volumetrictest.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | logo.png
4 | cubeFilledFlat.mesh
5 | logo_no_padding.png
6 |
7 |
8 |
--------------------------------------------------------------------------------
/examples/graphs/3d/equation/equation.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/equation/Main.qml
4 | images/opacitymap.png
5 | qml/equation/calculator.js
6 |
7 |
8 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetvolumetric/widgetvolumetric.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | layer_ground.png
4 | layer_magma.png
5 | layer_water.png
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/manual/qmldynamicdata/qmldynamicdata.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += qmldynamicdata.qrc
8 |
9 | OTHER_FILES += qml/qmldynamicdata/*
10 |
--------------------------------------------------------------------------------
/tests/manual/qmllegend/qmllegend.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmllegend/Data.qml
4 | qml/qmllegend/LegendItem.qml
5 | qml/qmllegend/main.qml
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/manual/qmltheme/qmltheme.pro:
--------------------------------------------------------------------------------
1 | QT += graphs gui qml
2 | # If testing with datavisualization instead, uncomment the following line
3 | #QT += datavisualization
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += qmltheme.qrc
8 |
9 | OTHER_FILES += qml/qmltheme/*
10 |
--------------------------------------------------------------------------------
/.cmake.conf:
--------------------------------------------------------------------------------
1 | set(QT_REPO_MODULE_VERSION "6.12.0")
2 | set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
3 | set(QT_EXTRA_INTERNAL_TARGET_DEFINES
4 | "QT_NO_CONTEXTLESS_CONNECT=1"
5 | "QT_NO_FOREACH=1"
6 | "QT_NO_QASCONST=1"
7 | "QT_NO_URL_CAST_FROM_STRING=1"
8 | )
9 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgtheme/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgtheme
5 | SOURCES
6 | tst_theme.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/manual/multigraphs/multigraphs.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp \
6 | data.cpp
7 | HEADERS += data.h
8 |
9 | QT += widgets
10 |
11 | RESOURCES += \
12 | multigraphs.qrc
13 |
--------------------------------------------------------------------------------
/tests/manual/qmlrenderslicetoimage/qmlrenderslicetoimage.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += qmlrenderslicetoimage.qrc
8 |
9 | OTHER_FILES += qml/qmlrenderslicetoimage/*
10 |
--------------------------------------------------------------------------------
/examples/graphs/3d/bars/bars.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += bars.qrc
8 |
9 | OTHER_FILES += doc/src/* \
10 | doc/images/* \
11 | qml/bars/*
12 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgxymodelmapper/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | qt_internal_add_test(tst_qgxymodelmapper2d
2 | SOURCES
3 | tst_xymodelmapper.cpp
4 | INCLUDE_DIRECTORIES
5 | ../common
6 | LIBRARIES
7 | Qt::Gui
8 | Qt::GuiPrivate
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgaxis-value/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgaxis_value
5 | SOURCES
6 | tst_axis.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgbars-proxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbars_proxy
5 | SOURCES
6 | tst_proxy.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/CustomLabel.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 |
6 | Text {
7 | color: "#f0f0f0"
8 | font.pointSize: settings.fontSizeSmall
9 | }
10 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgbarmodelmapper/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | qt_internal_add_test(tst_qgbarmodelmapper2d
2 | SOURCES
3 | tst_barmodelmapper.cpp
4 | INCLUDE_DIRECTORIES
5 | ../common
6 | LIBRARIES
7 | Qt::Gui
8 | Qt::GuiPrivate
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgpiemodelmapper/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | qt_internal_add_test(tst_qgpiemodelmapper2d
2 | SOURCES
3 | tst_piemodelmapper.cpp
4 | INCLUDE_DIRECTORIES
5 | ../common
6 | LIBRARIES
7 | Qt::Gui
8 | Qt::GuiPrivate
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgaxis-category/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgaxis_category
5 | SOURCES
6 | tst_axis.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgaxis-logvalue/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgaxis_logvalue
5 | SOURCES
6 | tst_axis.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgbars-series/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbars_series
5 | SOURCES
6 | tst_series.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgscatter-proxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgscatter_proxy
5 | SOURCES
6 | tst_proxy.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-proxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface_proxy
5 | SOURCES
6 | tst_proxy.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/cockpit.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += cockpit.qrc
8 |
9 | OTHER_FILES += doc/src/* \
10 | doc/images/* \
11 | qml/cockpit/*
12 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/scatter.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += scatter.qrc
8 |
9 | OTHER_FILES += doc/src/* \
10 | doc/images/* \
11 | qml/scatter/*
12 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgcustom-volume/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgcustom_volume
5 | SOURCES
6 | tst_custom.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgscatter-series/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgscatter_series
5 | SOURCES
6 | tst_series.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/manual/minimalbars/minimalbars.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | QT += core gui graphs
6 |
7 | TARGET = MinimalBars
8 | TEMPLATE = app
9 |
10 | SOURCES += ../../../src/graphs3d/doc/snippets/doc_src_q3dbars_construction.cpp
11 |
--------------------------------------------------------------------------------
/examples/graphs/3d/equation/equation.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += equation.qrc
8 |
9 | OTHER_FILES += doc/src/* \
10 | doc/images/* \
11 | qml/equation/*
12 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/3dsliceframes.frag:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 |
3 | void MAIN() {
4 | highp vec2 absPos = min(vec2(1.0, 1.0), abs(pos.xy));
5 | if (absPos.x > sliceFrameWidth.x || absPos.y > sliceFrameWidth.y)
6 | FRAGCOLOR = color;
7 | else
8 | discard;
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgbars-seriesaxis/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbars_seriesaxis
5 | SOURCES
6 | tst_seriesaxis.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/examples/graphs/2d/examples.pri:
--------------------------------------------------------------------------------
1 | INCLUDEPATH += ../../../include
2 |
3 | LIBS += -L$$OUT_PWD/../../../lib
4 |
5 | TEMPLATE = app
6 |
7 | QT += graphs
8 |
9 | contains(TARGET, qml.*) {
10 | QT += qml quick
11 | }
12 |
13 | target.path = $$[QT_INSTALL_EXAMPLES]/graphs/$$TARGET
14 | INSTALLS += target
15 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qginput/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qginput
5 | SOURCES
6 | tst_input.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | Qt::GraphsWidgets
11 | )
12 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-seriesaxis/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface_seriesAxis
5 | SOURCES
6 | tst_seriesaxis.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
--------------------------------------------------------------------------------
/tests/manual/minimalscatter/minimalscatter.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | QT += core gui graphs
6 |
7 | TARGET = MinimalScatter
8 | TEMPLATE = app
9 |
10 | SOURCES += ../../../src/graphs3d/doc/snippets/doc_src_q3dscatter_construction.cpp
11 |
--------------------------------------------------------------------------------
/tests/manual/minimalsurface/minimalsurface.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | QT += core gui graphs
6 |
7 | TARGET = minimalSurface
8 | TEMPLATE = app
9 |
10 | SOURCES += ../../../src/graphs3d/doc/snippets/doc_src_q3dsurface_construction.cpp
11 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/surfacetest.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp \
6 | graphmodifier.cpp
7 |
8 | QT += widgets
9 |
10 | HEADERS += \
11 | graphmodifier.h
12 |
13 | RESOURCES += \
14 | surfacetest.qrc
15 |
--------------------------------------------------------------------------------
/examples/graphs/2d/hellographs/hellographs.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp
6 |
7 | RESOURCES += hellographs.qrc
8 |
9 | OTHER_FILES += doc/src/* \
10 | doc/images/* \
11 | qml/hellographs/*
12 |
--------------------------------------------------------------------------------
/examples/graphs/3d/3d.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = subdirs
2 | qtHaveModule(quick) {
3 | SUBDIRS += bars \
4 | scatter \
5 | axishandling \
6 | surfacegallery
7 | }
8 |
9 | !android:!ios:!winrt {
10 | SUBDIRS += widgetgraphgallery \
11 | widgetvolumetric
12 | }
13 |
--------------------------------------------------------------------------------
/dependencies.yaml:
--------------------------------------------------------------------------------
1 | dependencies:
2 | ../qtbase:
3 | ref: df1292e2b96aab02ad6df778d8336e7958ad5d1c
4 | required: true
5 | ../qtdeclarative:
6 | ref: 7ef1d06ce70fa360613dca0b5ff03365ebbc9883
7 | required: true
8 | ../qtquick3d:
9 | ref: e69476d94a7fe6c7748f39554e88dff21076a27c
10 | required: false
11 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/scatterinstancing.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 | VARYING vec4 vColor;
3 |
4 | void MAIN()
5 | {
6 | pos = VERTEX;
7 | vec2 gradientUV = vec2(INSTANCE_DATA.x, 0.0);
8 | vColor = texture(custex, gradientUV);
9 | POSITION = INSTANCE_MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
10 | }
11 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgscatter-modelproxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgscatter_modelproxy
5 | SOURCES
6 | tst_proxy.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Widgets
10 | Qt::Graphs
11 | )
12 |
--------------------------------------------------------------------------------
/tests/manual/qmlqtquick3dintegration/qmlqtquick3dintegration.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | QT += multimedia multimediawidgets
6 |
7 | SOURCES += main.cpp \
8 | videodata.cpp
9 |
10 | HEADERS += videodata.h
11 |
12 | RESOURCES += qmlqtquick3dintegration.qrc
13 |
--------------------------------------------------------------------------------
/src/common/theme/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_extend_target(Graphs
5 | SOURCES
6 | qgraphstheme.cpp qgraphstheme.h qgraphstheme_p.h
7 | qquickgraphscolor.cpp qquickgraphscolor_p.h
8 | INCLUDE_DIRECTORIES
9 | ../utils/
10 | )
11 |
--------------------------------------------------------------------------------
/tests/manual/qmlsurfacelayers/qmlsurfacelayers.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlsurfacelayers/main.qml
4 |
5 |
6 | layer_1.png
7 | layer_2.png
8 | layer_3.png
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/manual/qmlqtquick3dintegration/qmlqtquick3dintegration.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlqtquick3dintegration/Axes.qml
4 | qml/qmlqtquick3dintegration/Data.qml
5 | qml/qmlqtquick3dintegration/main.qml
6 | video/video.mp4
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgarea/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgarea2d
5 | SOURCES
6 | tst_area.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgbars/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbars2d
5 | SOURCES
6 | tst_bars.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/manual/volumetrictest/volumetrictest.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | SOURCES += main.cpp volumetrictest.cpp
6 | HEADERS += volumetrictest.h
7 |
8 | QT += widgets
9 |
10 | OTHER_FILES += doc/src/* \
11 | doc/images/*
12 |
13 | RESOURCES += \
14 | volumetrictest.qrc
15 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qglines/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qglines2d
5 | SOURCES
6 | tst_lines.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/manual/tests.pri:
--------------------------------------------------------------------------------
1 | INCLUDEPATH += ../../../include
2 |
3 | LIBS += -L$$OUT_PWD/../../lib
4 |
5 | TEMPLATE = app
6 |
7 | QT += graphs
8 |
9 | contains(TARGET, qml.*) {
10 | QT += qml quick
11 | }
12 |
13 | qtHaveModule(widgets) {
14 | QT += graphswidgets
15 | }
16 |
17 | target.path = $$[QT_INSTALL_TESTS]/graphs/$$TARGET
18 | INSTALLS += target
19 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgbars-set/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbarset2d
5 | SOURCES
6 | tst_barset.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgcustom/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgcustom2d
5 | SOURCES
6 | tst_custom.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgscatter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgscatter2d
5 | SOURCES
6 | tst_scatter.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgsplines/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgspline2d
5 | SOURCES
6 | tst_splines.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgxychart/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgxychart2d
5 | SOURCES
6 | tst_xyseries.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/manual/rotations/rotations.pro:
--------------------------------------------------------------------------------
1 | android|ios|winrt {
2 | error( "This example is not supported for android, ios, or winrt." )
3 | }
4 |
5 | SOURCES += main.cpp scatterdatamodifier.cpp
6 | HEADERS += scatterdatamodifier.h
7 |
8 | QT += widgets graphs
9 |
10 | RESOURCES += rotations.qrc
11 |
12 | OTHER_FILES += doc/src/* \
13 | doc/images/*
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgpieslice/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgpieslice2d
5 | SOURCES
6 | tst_qgpieslice.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Graphs
11 | Qt::Gui
12 | Qt::GuiPrivate
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgcustom-label/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgcustom_label
5 | SOURCES
6 | tst_custom.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/examples/graphs/3d/examples.pri:
--------------------------------------------------------------------------------
1 | INCLUDEPATH += ../../../include
2 |
3 | LIBS += -L$$OUT_PWD/../../../lib
4 |
5 | TEMPLATE = app
6 |
7 | QT += graphs
8 |
9 | contains(TARGET, qml.*) {
10 | QT += qml quick
11 | }
12 |
13 | qtHaveModule(widgets) {
14 | QT += graphswidgets
15 | }
16 |
17 | target.path = $$[QT_INSTALL_EXAMPLES]/graphs/$$TARGET
18 | INSTALLS += target
19 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgpieseries/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgpieseries2d
5 | SOURCES
6 | tst_qgpieseries.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Graphs
11 | Qt::Gui
12 | Qt::GuiPrivate
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgtheme-graph/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qggraphtheme2d
5 | SOURCES
6 | tst_graphtheme.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgaxis-abstract/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgabstractaxis2d
5 | SOURCES
6 | tst_abstractaxis.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgaxis-datetime/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgdatetimeaxis2d
5 | SOURCES
6 | tst_datetimeaxis.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgtheme-series/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgseriestheme2d
5 | SOURCES
6 | tst_seriestheme.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/examples/graphs/2d/quickwidgetgraphs/quickwidgetgraphs.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | QT += widgets \
6 | quickwidgets
7 |
8 | SOURCES += main.cpp \
9 | piegraph.cpp \
10 | piewidget.cpp
11 |
12 | HEADERS += piegraph.h \
13 | piewidget.h
14 |
15 | OTHER_FILES += doc/src/* \
16 | doc/images/*
17 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgbars/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbars
5 | SOURCES
6 | tst_bars.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | Qt::GraphsWidgets
14 | )
15 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgscene/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgscene
5 | SOURCES
6 | tst_scene.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | Qt::GraphsWidgets
14 | )
15 |
--------------------------------------------------------------------------------
/tests/manual/barstest/sliderwrapper.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #include "sliderwrapper.h"
4 |
5 | SliderWrapper::SliderWrapper(QSlider *slider)
6 | {
7 | m_slider = slider;
8 | }
9 |
10 | void SliderWrapper::setEnabled(int enabled)
11 | {
12 | m_slider->setEnabled(enabled);
13 | }
14 |
--------------------------------------------------------------------------------
/tests/manual/qmllegend/qmllegend.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | # The .cpp file which was generated for your project. Feel free to hack it.
6 | SOURCES += main.cpp
7 |
8 | RESOURCES += qmllegend.qrc
9 |
10 | OTHER_FILES += doc/src/* \
11 | doc/images/* \
12 | qml/qmllegend/*
13 |
14 |
--------------------------------------------------------------------------------
/tests/manual/qmlmultitest/qmlmultitest.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | # The .cpp file which was generated for your project. Feel free to hack it.
6 | SOURCES += main.cpp
7 |
8 | RESOURCES += qmlmultitest.qrc
9 |
10 | OTHER_FILES += doc/src/* \
11 | doc/images/* \
12 | qml/qmlmultitest/*
13 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/default/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_path_join(destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtGraphs/designer/default")
5 | qt_copy_or_install(
6 | FILES
7 | Bars3D.qml
8 | Scatter3D.qml
9 | Surface3D.qml
10 | DESTINATION "${destination}"
11 | )
12 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgaxis-barcategory/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbarcategoryaxis2d
5 | SOURCES
6 | tst_barcategoryaxis.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | )
14 |
--------------------------------------------------------------------------------
/configure.cmake:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_extra_definition("QT_VERSION_STR" "\"${PROJECT_VERSION}\"" PUBLIC)
5 | qt_extra_definition("QT_VERSION_MAJOR" ${PROJECT_VERSION_MAJOR} PUBLIC)
6 | qt_extra_definition("QT_VERSION_MINOR" ${PROJECT_VERSION_MINOR} PUBLIC)
7 | qt_extra_definition("QT_VERSION_PATCH" ${PROJECT_VERSION_PATCH} PUBLIC)
8 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgscatter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgscatter
5 | SOURCES
6 | tst_scatter.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | Qt::GraphsWidgets
14 | )
15 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface
5 | SOURCES
6 | tst_surface.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | Qt::GraphsWidgets
14 | )
15 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgspline-series/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgspline_series
5 | SOURCES
6 | tst_series.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | Qt::GraphsWidgets
14 | )
15 |
--------------------------------------------------------------------------------
/tests/manual/itemmodel/itemmodel.pro:
--------------------------------------------------------------------------------
1 | android|ios|winrt {
2 | error( "This example is not supported for android, ios, or winrt." )
3 | }
4 |
5 | !include( ../examples.pri ) {
6 | error( "Couldn't find the examples.pri file!" )
7 | }
8 |
9 | SOURCES += main.cpp
10 |
11 | QT += widgets
12 | requires(qtConfig(tablewidget))
13 |
14 | OTHER_FILES += doc/src/* \
15 | doc/images/*
16 |
--------------------------------------------------------------------------------
/tests/manual/qmlcustominput/qmlcustominput.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | # The .cpp file which was generated for your project. Feel free to hack it.
6 | SOURCES += main.cpp
7 |
8 | RESOURCES += qmlcustominput.qrc
9 |
10 | OTHER_FILES += doc/src/* \
11 | doc/images/* \
12 | qml/qmlcustominput/*
13 |
--------------------------------------------------------------------------------
/tests/manual/renderslicetoimage/renderslicetoimage.pro:
--------------------------------------------------------------------------------
1 | android|ios|winrt {
2 | error( "This example is not supported for android, ios, or winrt." )
3 | }
4 |
5 | SOURCES += main.cpp surfacegraph.cpp surfacegraphmodifier.cpp surfacegraphwidget.cpp
6 | HEADERS += surfacegraph.h surfacegraphmodifier.h surfacegraphwidget.h
7 |
8 | QT += widgets graphs
9 |
10 | RESOURCES += renderslicetoimage.qrc
11 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/SurfaceShadowNoTex.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property vector3d lightPosition_wrld
9 |
10 | shadingMode: CustomMaterial.Unshaded
11 | fragmentShader: "qrc:/shaders/fragmentSurfaceShadowNoTex"
12 | }
13 |
--------------------------------------------------------------------------------
/tests/auto/cpp2dtest/qgaxis-value/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgvalueaxis2d
5 | SOURCES
6 | tst_valueaxis.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Graphs
13 | Qt::GraphsPrivate
14 | )
15 |
--------------------------------------------------------------------------------
/tests/manual/qmlsurfacelayers/qmlsurfacelayers.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | # The .cpp file which was generated for your project. Feel free to hack it.
6 | SOURCES += main.cpp
7 |
8 | RESOURCES += qmlsurfacelayers.qrc
9 |
10 | OTHER_FILES += doc/src/* \
11 | doc/images/* \
12 | qml/qmlsurfacelayers/*
13 |
--------------------------------------------------------------------------------
/tests/manual/barstest/buttonwrapper.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #include "buttonwrapper.h"
4 | #include
5 |
6 | ButtonWrapper::ButtonWrapper(QPushButton *button)
7 | {
8 | m_button = button;
9 | }
10 |
11 | void ButtonWrapper::setEnabled(int state)
12 | {
13 | m_button->setEnabled(state);
14 | }
15 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/buttonwrapper.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #include "buttonwrapper.h"
4 | #include
5 |
6 | ButtonWrapper::ButtonWrapper(QPushButton *button)
7 | {
8 | m_button = button;
9 | }
10 |
11 | void ButtonWrapper::setEnabled(int state)
12 | {
13 | m_button->setEnabled(state);
14 | }
15 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/barsinstancing.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 | VARYING vec3 instanceColor;
3 | VARYING float instanceAlpha;
4 | VARYING float heightValue;
5 |
6 | void MAIN()
7 | {
8 | pos = VERTEX;
9 | instanceColor = INSTANCE_COLOR.rgb;
10 | instanceAlpha = INSTANCE_COLOR.a;
11 | heightValue = INSTANCE_DATA.x;
12 | POSITION = INSTANCE_MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
13 | }
14 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/surfaceGrid.vert:
--------------------------------------------------------------------------------
1 | VARYING vec3 pos;
2 | VARYING float disc;
3 | VARYING vec2 UV;
4 |
5 | void MAIN()
6 | {
7 | UV = UV0 * (vertices / range);
8 |
9 | vec3 v = texture(height, UV).xyz;
10 | pos = v;
11 | disc = 0;
12 | if (fill && v.y > graphHeight)
13 | disc = 1;
14 |
15 | VERTEX = v;
16 | POSITION = MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);
17 | }
18 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/checkboxwrapper.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #include "checkboxwrapper.h"
4 | #include
5 |
6 | CheckBoxWrapper::CheckBoxWrapper(QCheckBox *cb)
7 | {
8 | m_checkbox = cb;
9 | }
10 |
11 | void CheckBoxWrapper::setEnabled(int enabled)
12 | {
13 | m_checkbox->setEnabled(enabled);
14 | }
15 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgcustom/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgcustom
5 | SOURCES
6 | tst_custom.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
12 | qt_internal_add_resource(tst_qgcustom "qgcustom"
13 | PREFIX
14 | "/"
15 | FILES
16 | "customitem.mesh"
17 | )
18 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgbars-modelproxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgbars_modelproxy
5 | SOURCES
6 | tst_proxy.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Widgets
13 | Qt::Graphs
14 | Qt::GraphsWidgets
15 | )
16 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-modelproxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface_modelproxy
5 | SOURCES
6 | tst_proxy.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Widgets
13 | Qt::Graphs
14 | Qt::GraphsWidgets
15 | )
16 |
--------------------------------------------------------------------------------
/src/graphs3d/engine/shaders/surfaceGrid.frag:
--------------------------------------------------------------------------------
1 | vec4 color;
2 | VARYING vec3 pos;
3 | VARYING float disc;
4 | VARYING vec2 UV;
5 |
6 | void MAIN()
7 | {
8 | if (abs(pos.y) > graphHeight)
9 | discard;
10 | if (disc > 0)
11 | discard;
12 | if (texture(height, UV).a != 1.0)
13 | discard;
14 |
15 | color = gridColor;
16 | }
17 |
18 | void POST_PROCESS()
19 | {
20 | COLOR_SUM = color;
21 | }
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-modelproxy-nan/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface_modelproxy_nan
5 | SOURCES
6 | tst_proxy.cpp
7 | INCLUDE_DIRECTORIES
8 | ../common
9 | LIBRARIES
10 | Qt::Gui
11 | Qt::GuiPrivate
12 | Qt::Widgets
13 | Qt::Graphs
14 | Qt::GraphsWidgets
15 | )
16 |
--------------------------------------------------------------------------------
/tests/manual/qmlperf/qmlperf.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | # The .cpp file which was generated for your project. Feel free to hack it.
6 | SOURCES += main.cpp \
7 | datagenerator.cpp
8 |
9 | RESOURCES += qmlperf.qrc
10 |
11 | OTHER_FILES += doc/src/* \
12 | doc/images/* \
13 | qml/qmlperf/*
14 |
15 | HEADERS += \
16 | datagenerator.h
17 |
--------------------------------------------------------------------------------
/tests/auto/qml2dtest/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | file(GLOB_RECURSE test_data_glob
5 | RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
6 | *)
7 | list(APPEND test_data ${test_data_glob})
8 |
9 | qt_internal_add_test(tst_qgqml2dtest
10 | QMLTEST
11 | SOURCES
12 | tst_qml2dtest.cpp
13 | LIBRARIES
14 | Qt::Gui
15 | TESTDATA ${test_data}
16 | )
17 |
--------------------------------------------------------------------------------
/examples/graphs/2d/quickwidgetgraphs/main.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #include
5 | #include
6 |
7 | #include "piewidget.h"
8 |
9 | int main(int argc, char *argv[])
10 | {
11 | QApplication app(argc, argv);
12 | PieWidget graph;
13 | graph.containerWidget()->show();
14 |
15 | return app.exec();
16 | }
17 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetvolumetric/widgetvolumetric.pro:
--------------------------------------------------------------------------------
1 | android|winrt {
2 | error( "This example is not supported for android or winrt." )
3 | }
4 |
5 | !include( ../examples.pri ) {
6 | error( "Couldn't find the examples.pri file!" )
7 | }
8 |
9 | SOURCES += main.cpp volumetric.cpp
10 | HEADERS += volumetric.h
11 |
12 | QT += widgets
13 |
14 | OTHER_FILES += doc/src/* \
15 | doc/images/*
16 |
17 | RESOURCES += widgetvolumetric.qrc
18 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/DatapointCube.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtQuick3D
6 |
7 | Component {
8 | Model {
9 | property color seriesColor: "white"
10 | property int seriesItem: index
11 | source: "#Cube"
12 | pickable: true
13 | scale: Qt.vector3d(0.001, 0.001, 0.001)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/tests/manual/qmlvolume/qmlvolume.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | QT += graphs
6 |
7 | # The .cpp file which was generated for your project. Feel free to hack it.
8 | SOURCES += main.cpp \
9 | datasource.cpp
10 | HEADERS += datasource.h
11 |
12 | RESOURCES += qmlvolume.qrc
13 |
14 | OTHER_FILES += doc/src/* \
15 | doc/images/* \
16 | qml/qmlvolume/*
17 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/DatapointSphere.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtQuick3D
6 |
7 | Component {
8 | Model {
9 | property color seriesColor: "white"
10 | property int seriesItem: index
11 | source: "#Sphere"
12 | pickable: true
13 | scale: Qt.vector3d(0.001, 0.001, 0.001)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/ObjectGradientMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property TextureInput custex: TextureInput {}
9 |
10 | shadingMode: CustomMaterial.Shaded
11 | vertexShader: "qrc:/shaders/objectgradientvert"
12 | fragmentShader: "qrc:/shaders/objectgradientfrag"
13 | }
14 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_path_join(destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtGraphs/designer/default")
5 | qt_copy_or_install(
6 | FILES
7 | AreaSeries.qml
8 | BarSeries.qml
9 | LineSeries.qml
10 | PieSeries.qml
11 | ScatterSeries.qml
12 | SplineSeries.qml
13 | DESTINATION "${destination}"
14 | )
15 |
--------------------------------------------------------------------------------
/tests/manual/qmlrenderslicetoimage/qmlrenderslicetoimage.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/qmlgrabsliceview/main.qml
4 | qml/qmlgrabsliceview/SurfaceGraph.qml
5 | qml/qmlgrabsliceview/BarGraph.qml
6 |
7 |
8 | layer_1.png
9 | layer_2.png
10 | layer_3.png
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/LineSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | GraphsView {
8 | width: 300
9 | height: 300
10 |
11 | LineSeries {
12 | id: lineSeries
13 | XYPoint { x: 0; y: 2 }
14 | XYPoint { x: 1; y: 1.2 }
15 | XYPoint { x: 2; y: 3.3 }
16 | XYPoint { x: 5; y: 2.1 }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/ScatterSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | GraphsView {
8 | width: 300
9 | height: 300
10 |
11 | ScatterSeries {
12 | id: lineSeries
13 | XYPoint { x: 1; y: 1 }
14 | XYPoint { x: 2; y: 4 }
15 | XYPoint { x: 4; y: 2 }
16 | XYPoint { x: 5; y: 5 }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/SplineSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | GraphsView {
8 | width: 300
9 | height: 300
10 |
11 | SplineSeries {
12 | id: splineSeries
13 | XYPoint { x: 1; y: 1 }
14 | XYPoint { x: 2; y: 4 }
15 | XYPoint { x: 4; y: 2 }
16 | XYPoint { x: 5; y: 5 }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/examples/graphs/3d/axishandling/axishandling.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | CONFIG += qmltypes
6 | QML_IMPORT_NAME = AxisHandlingExample
7 | QML_IMPORT_MAJOR_VERSION = 1
8 |
9 | SOURCES += main.cpp \
10 | customformatter.cpp
11 |
12 | HEADERS += customformatter.h
13 |
14 | RESOURCES += axishandling.qrc
15 |
16 | OTHER_FILES += doc/src/* \
17 | doc/images/* \
18 | qml/axishandling/*
19 |
--------------------------------------------------------------------------------
/examples/graphs/3d/surfacegallery/surfacegallery.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/surfacegallery/heightmap.png
4 | qml/surfacegallery/main.qml
5 | qml/surfacegallery/SpectrogramData.qml
6 | qml/surfacegallery/SurfaceHeightMap.qml
7 | qml/surfacegallery/SurfaceOscilloscope.qml
8 | qml/surfacegallery/SurfaceSpectrogram.qml
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/ObjectGradientMaterialInstancing.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property TextureInput custex: TextureInput {}
9 |
10 | shadingMode: CustomMaterial.Shaded
11 | fragmentShader: "qrc:/shaders/objectgradientinstancingfrag"
12 | vertexShader: "qrc:/shaders/objectgradientinstancingvert"
13 | }
14 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/SurfaceSliceMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property bool isColumn: false
9 | property TextureInput custex: TextureInput {}
10 |
11 | shadingMode: CustomMaterial.Shaded
12 | vertexShader: "qrc:/shaders/surfaceSlicevert"
13 | fragmentShader: "qrc:/shaders/rangegradientfrag"
14 | }
15 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/PieSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | GraphsView {
8 | width: 300
9 | height: 300
10 |
11 | PieSeries {
12 | id: pieSeries
13 | PieSlice { label: "Slice1"; value: 13.5 }
14 | PieSlice { label: "Slice2"; value: 10.9 }
15 | PieSlice { label: "Slice3"; value: 8.6 }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/LICENSES/LicenseRef-Qt-Commercial.txt:
--------------------------------------------------------------------------------
1 | Licensees holding valid commercial Qt licenses may use this software in
2 | accordance with the the terms contained in a written agreement between
3 | you and The Qt Company. Alternatively, the terms and conditions that were
4 | accepted by the licensee when buying and/or downloading the
5 | software do apply.
6 |
7 | For the latest licensing terms and conditions, see https://www.qt.io/terms-conditions.
8 | For further information use the contact form at https://www.qt.io/contact-us.
9 |
--------------------------------------------------------------------------------
/examples/graphs/3d/surfacegallery/surfacegallery.pro:
--------------------------------------------------------------------------------
1 | !include( ../examples.pri ) {
2 | error( "Couldn't find the examples.pri file!" )
3 | }
4 |
5 | CONFIG += qmltypes
6 | QML_IMPORT_NAME = SurfaceGalleryExample
7 | QML_IMPORT_MAJOR_VERSION = 1
8 |
9 | QT += graphs
10 |
11 | SOURCES += main.cpp \
12 | datasource.cpp
13 | HEADERS += datasource.h
14 |
15 | RESOURCES += surfacegallery.qrc
16 |
17 | OTHER_FILES += doc/src/* \
18 | doc/images/* \
19 | qml/surfacegallery/*
20 |
--------------------------------------------------------------------------------
/examples/graphs/3d/axishandling/axishandling.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/axishandling/AxisDragging.qml
4 | qml/axishandling/AxisFormatting.qml
5 | qml/axishandling/Data.qml
6 | qml/axishandling/main.qml
7 | qml/axishandling/cube.mesh
8 | qml/axishandling/cubetexture.png
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/images/theme.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/examples/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | qt_examples_build_begin(EXTERNAL_BUILD)
5 |
6 | if(QT_FEATURE_graphs_3d)
7 | add_subdirectory(graphs/3d)
8 | endif()
9 |
10 | if(QT_FEATURE_graphs_2d)
11 | add_subdirectory(graphs/2d)
12 | endif()
13 |
14 | if(QT_FEATURE_graphs_2d AND QT_FEATURE_graphs_3d AND TARGET Qt6::PrintSupport)
15 | add_subdirectory(graphs/graphprinting)
16 | endif()
17 |
18 | qt_examples_build_end()
19 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qmltestbed.pro:
--------------------------------------------------------------------------------
1 | !include( ../tests.pri ) {
2 | error( "Couldn't find the tests.pri file!" )
3 | }
4 |
5 | QT += core graphs gui qml quick
6 |
7 | SOURCES += main.cpp \
8 | custombarseries.h custombarseries.cpp \
9 | customlineseries.h customlineseries.cpp \
10 | barsetgenerator.h barsetgenerator.cpp \
11 | barmodelmappermodel.h barmodelmappermodel.cpp \
12 | piemodelmappermodel.h piemodelmappermodel.cpp
13 |
14 | RESOURCES += qmltestbed.qrc
15 |
16 | OTHER_FILES += qml/qmltestbed/*
17 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/BarSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | GraphsView {
8 | width: 300
9 | height: 300
10 |
11 | BarSeries {
12 | id: barSeries
13 | BarSet { id: set1; label: "Set1"; values: [2, 2, 3] }
14 | BarSet { id: set2; label: "Set2"; values: [5, 1, 2] }
15 | BarSet { id: set3; label: "Set3"; values: [3, 5, 8] }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/tests/manual/barstest/buttonwrapper.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #ifndef BUTTONWRAPPER_H
4 | #define BUTTONWRAPPER_H
5 |
6 | #include
7 | class QPushButton;
8 |
9 | class ButtonWrapper : public QObject
10 | {
11 | Q_OBJECT
12 | public:
13 | ButtonWrapper(QPushButton *button);
14 |
15 | public Q_SLOTS:
16 | void setEnabled(int state);
17 |
18 | private:
19 | QPushButton *m_button;
20 | };
21 |
22 | #endif // BUTTONWRAPPER_H
23 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/barsetgenerator.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #include "barsetgenerator.h"
4 | #include
5 |
6 | BarSetGenerator::BarSetGenerator(QObject *parent)
7 | : QObject(parent)
8 | {}
9 |
10 | QBarSet *BarSetGenerator::createNewBarSet()
11 | {
12 | auto set = new QBarSet();
13 | const int valueCount = 6;
14 | for (int i = 0; i < valueCount; ++i)
15 | set->append(i + 1);
16 | return set;
17 | }
18 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/buttonwrapper.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #ifndef BUTTONWRAPPER_H
4 | #define BUTTONWRAPPER_H
5 |
6 | #include
7 | class QPushButton;
8 |
9 | class ButtonWrapper : public QObject
10 | {
11 | Q_OBJECT
12 | public:
13 | ButtonWrapper(QPushButton *button);
14 |
15 | public Q_SLOTS:
16 | void setEnabled(int state);
17 |
18 | private:
19 | QPushButton *m_button;
20 | };
21 |
22 | #endif // BUTTONWRAPPER_H
23 |
--------------------------------------------------------------------------------
/tests/manual/qmlvolume/datasource.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef DATASOURCE_H
5 | #define DATASOURCE_H
6 |
7 | #include
8 | #include
9 |
10 | class DataSource : public QObject
11 | {
12 | Q_OBJECT
13 | public:
14 | explicit DataSource(QObject *parent = 0);
15 | ~DataSource() override;
16 |
17 | public:
18 | Q_INVOKABLE void fillVolume(QCustom3DVolume *volumeItem);
19 | };
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-series/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface_series
5 | SOURCES
6 | tst_series.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
12 | set(qgsurface_series_resource_files
13 | "customtexture.jpg"
14 | )
15 |
16 | qt_internal_add_resource(tst_qgsurface_series "qgdsurface_series"
17 | PREFIX
18 | "/"
19 | FILES
20 | ${qgsurface_series_resource_files}
21 | )
22 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/widgetgraphgallery.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | data/raindata.txt
4 | data/layer_1.png
5 | data/layer_2.png
6 | data/layer_3.png
7 | data/refinery.mesh
8 | data/oilrig.mesh
9 | data/pipe.mesh
10 | data/narrowarrow.mesh
11 | data/maptexture.jpg
12 | data/topography.png
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/default/AreaSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 |
7 | GraphsView {
8 | width: 300
9 | height: 300
10 |
11 | AreaSeries {
12 | name: "AreaSeries"
13 | upperSeries: LineSeries {
14 | XYPoint { x: 0; y: 1.5 }
15 | XYPoint { x: 1; y: 3 }
16 | XYPoint { x: 3; y: 4.3 }
17 | XYPoint { x: 6; y: 1.1 }
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/tests/manual/barstest/sliderwrapper.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #ifndef SLIDERWRAPPER_H
4 | #define SLIDERWRAPPER_H
5 | #include
6 | #include
7 |
8 | class SliderWrapper : public QObject
9 | {
10 | Q_OBJECT
11 |
12 | public:
13 | explicit SliderWrapper(QSlider *slider);
14 |
15 | public Q_SLOTS:
16 | void setEnabled(int enabled);
17 |
18 | private:
19 | QSlider *m_slider = nullptr;
20 |
21 | };
22 |
23 | #endif // SLIDERWRAPPER_H
24 |
--------------------------------------------------------------------------------
/tests/manual/custominput/custominput.pro:
--------------------------------------------------------------------------------
1 | android|ios|winrt {
2 | error( "This example is not supported for android, ios, or winrt." )
3 | }
4 |
5 | !include( ../examples.pri ) {
6 | error( "Couldn't find the examples.pri file!" )
7 | }
8 |
9 | SOURCES += main.cpp scatterdatamodifier.cpp \
10 | custominputhandler.cpp
11 | HEADERS += scatterdatamodifier.h \
12 | custominputhandler.h
13 |
14 | QT += widgets
15 | requires(qtConfig(combobox))
16 |
17 | RESOURCES += custominput.qrc
18 |
19 | OTHER_FILES += doc/src/* \
20 | doc/images/*
21 |
--------------------------------------------------------------------------------
/tests/manual/surfacetest/checkboxwrapper.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #ifndef CHECKBOXWRAPPER_H
4 | #define CHECKBOXWRAPPER_H
5 |
6 | #include
7 |
8 | class QCheckBox;
9 |
10 | class CheckBoxWrapper : public QObject
11 | {
12 | Q_OBJECT
13 | public:
14 | explicit CheckBoxWrapper(QCheckBox *cb);
15 |
16 | public Q_SLOTS:
17 | void setEnabled(int enabled);
18 |
19 | private:
20 | QCheckBox *m_checkbox;
21 | };
22 |
23 | #endif // CHECKBOXWRAPPER_H
24 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/qml/graphprinting/flatten_square_fill.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/VolumeFrameMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property color color
9 | property vector2d sliceFrameWidth
10 |
11 | shadingMode: CustomMaterial.Unshaded
12 | sourceBlend: CustomMaterial.SrcAlpha
13 | destinationBlend: CustomMaterial.OneMinusSrcAlpha
14 | vertexShader: "qrc:/shaders/positionvert"
15 | fragmentShader: "qrc:/shaders/3dsliceframesfrag"
16 | }
17 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/qgsurface-heightproxy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_test(tst_qgsurface_heightproxy
5 | SOURCES
6 | tst_proxy.cpp
7 | LIBRARIES
8 | Qt::Gui
9 | Qt::Graphs
10 | )
11 |
12 | set(qgsurface_heightproxy_resource_files
13 | "customtexture.jpg"
14 | )
15 |
16 | qt_internal_add_resource(tst_qgsurface_heightproxy "qgdsurface_heightproxy"
17 | PREFIX
18 | "/"
19 | FILES
20 | ${qgsurface_heightproxy_resource_files}
21 | )
22 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/barsetgenerator.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #ifndef BARSETGENERATOR_H
4 | #define BARSETGENERATOR_H
5 |
6 | #include
7 | #include
8 | #include
9 | #include
10 |
11 | class BarSetGenerator : public QObject
12 | {
13 | Q_OBJECT
14 | QML_ELEMENT
15 | public:
16 | explicit BarSetGenerator(QObject *parent = nullptr);
17 | Q_INVOKABLE QBarSet *createNewBarSet();
18 | };
19 |
20 | #endif // BARSETGENERATOR_H
21 |
--------------------------------------------------------------------------------
/tests/manual/qml2dpiegraph/main.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include
5 | #include
6 |
7 | int main(int argc, char *argv[])
8 | {
9 | QGuiApplication app(argc, argv);
10 | qputenv("QT_QUICK_CONTROLS_STYLE", "Basic");
11 | QQmlApplicationEngine engine;
12 | engine.load(QUrl(QStringLiteral("qrc:/PieChart.qml")));
13 | if (engine.rootObjects().isEmpty())
14 | return -1;
15 |
16 | return app.exec();
17 | }
18 |
--------------------------------------------------------------------------------
/tests/manual/renderslicetoimage/bargraphwidget.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "bargraphwidget.h"
5 |
6 | #include
7 |
8 | BarGraphWidget::BarGraphWidget() {}
9 |
10 | BarGraphWidget::~BarGraphWidget() {}
11 |
12 | void BarGraphWidget::initialize()
13 | {
14 | m_barGraph = new Q3DBarsWidgetItem();
15 | m_barGraph->setWidget(this);
16 | }
17 |
18 | Q3DBarsWidgetItem *BarGraphWidget::barGraph() const
19 | {
20 | return m_barGraph;
21 | }
22 |
--------------------------------------------------------------------------------
/src/graphs2d/customchart/qcustomseriesdata.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include
5 | #include
6 |
7 | QT_BEGIN_NAMESPACE
8 |
9 | QCustomSeriesData::QCustomSeriesData(QObject *parent)
10 | : QObject(parent)
11 | {}
12 |
13 | QVariantMap QCustomSeriesData::data() const
14 | {
15 | return m_data;
16 | }
17 |
18 | void QCustomSeriesData::setData(const QVariantMap &newData)
19 | {
20 | m_data = newData;
21 | }
22 |
23 | QT_END_NAMESPACE
24 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/GridSurfaceMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property color gridColor: 'black'
9 | property TextureInput height: TextureInput {}
10 |
11 | property vector2d vertices
12 | property vector2d range
13 | property real graphHeight
14 | property bool fill: false
15 |
16 | vertexShader: "qrc:/shaders/surfaceGridvert"
17 | fragmentShader: "qrc:/shaders/surfaceGridfrag"
18 | }
19 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/main.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include
5 | #include
6 |
7 | int main(int argc, char *argv[])
8 | {
9 | QGuiApplication app(argc, argv);
10 | qputenv("QT_QUICK_CONTROLS_STYLE", "Basic");
11 | QQmlApplicationEngine engine;
12 | engine.load(QUrl(QStringLiteral("qrc:/qml/qmltestbed/main.qml")));
13 | if (engine.rootObjects().isEmpty())
14 | return -1;
15 |
16 | return app.exec();
17 | }
18 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/scattergraphwidget.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 | #include "scattergraphwidget.h"
4 |
5 | ScatterGraphWidget::ScatterGraphWidget() = default;
6 |
7 | ScatterGraphWidget::~ScatterGraphWidget() = default;
8 |
9 | void ScatterGraphWidget::initialize()
10 | {
11 | m_scatterGraph = new Q3DScatterWidgetItem();
12 | m_scatterGraph->setWidget(this);
13 | }
14 |
15 | Q3DScatterWidgetItem *ScatterGraphWidget::scatterGraph() const
16 | {
17 | return m_scatterGraph;
18 | }
19 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/surfacegraphwidget.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 | #include "surfacegraphwidget.h"
4 |
5 | SurfaceGraphWidget::SurfaceGraphWidget() = default;
6 |
7 | SurfaceGraphWidget::~SurfaceGraphWidget() = default;
8 |
9 | void SurfaceGraphWidget::initialize()
10 | {
11 | m_surfaceGraph = new Q3DSurfaceWidgetItem();
12 | m_surfaceGraph->setWidget(this);
13 | }
14 |
15 | Q3DSurfaceWidgetItem *SurfaceGraphWidget::surfaceGraph() const
16 | {
17 | return m_surfaceGraph;
18 | }
19 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/SplineMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property TextureInput controlPoints: TextureInput {}
9 | property int points
10 |
11 | property real tension
12 | property real knotting
13 | property bool loop
14 | property color color
15 |
16 | shadingMode: CustomMaterial.Shaded
17 |
18 | vertexShader: "qrc:/shaders/splinevert"
19 | fragmentShader: "qrc:/shaders/splinefrag"
20 | }
21 |
--------------------------------------------------------------------------------
/tests/manual/qmlbenchmark2d/resultsio.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef RESULTSIO_H
5 | #define RESULTSIO_H
6 |
7 | #include
8 |
9 | class ResultsIO : public QObject
10 | {
11 | Q_OBJECT
12 |
13 | public:
14 | explicit ResultsIO(QObject *parent = nullptr);
15 |
16 | Q_INVOKABLE void saveResults(QString json);
17 | Q_INVOKABLE QString loadChartsResults();
18 | Q_INVOKABLE QString loadGraphsResults();
19 | Q_INVOKABLE bool useCharts();
20 | };
21 |
22 | #endif // RESULTSIO_H
23 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/qml/graphprinting/folder.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/tests/manual/custominput/custominputhandler.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef CUSTOMINPUTHANDLER_H
5 | #define CUSTOMINPUTHANDLER_H
6 |
7 | #include
8 |
9 | class CustomInputHandler : public QAbstract3DInputHandler
10 | {
11 | Q_OBJECT
12 | public:
13 | explicit CustomInputHandler(QObject *parent = 0);
14 |
15 | virtual void mouseMoveEvent(QMouseEvent *event, const QPoint &mousePos) override;
16 | virtual void wheelEvent(QWheelEvent *event) override;
17 | };
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/tests/manual/itemmodeltest/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_itemmodeltest LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_itemmodeltest
12 | GUI
13 | SOURCES
14 | main.cpp
15 | )
16 | target_link_libraries(tst_itemmodeltest PUBLIC
17 | Qt::Gui
18 | Qt::Widgets
19 | Qt::Graphs
20 | Qt::GraphsWidgets
21 | )
22 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/cpuusageupdater.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "cpuusageupdater.h"
5 |
6 | CpuUsageUpdater::CpuUsageUpdater(QObject *parent) {}
7 |
8 | double CpuUsageUpdater::update()
9 | {
10 | return m_processorInfo.updateTime();
11 | }
12 |
13 | qreal CpuUsageUpdater::usage() const
14 | {
15 | return m_usage;
16 | }
17 |
18 | void CpuUsageUpdater::setUsage(qreal newUsage)
19 | {
20 | if (m_usage == newUsage)
21 | return;
22 | m_usage = newUsage;
23 | emit usageChanged();
24 | }
25 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/processorinfo.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef PROCESSORINFO_H
5 | #define PROCESSORINFO_H
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | class ProcessorInfo
12 | {
13 | public:
14 | ProcessorInfo();
15 | ~ProcessorInfo();
16 |
17 | double updateTime();
18 |
19 | private:
20 | const double m_maxSamples = 15.0;
21 | double m_normalizedUsage;
22 |
23 | PDH_HQUERY m_cpuQuery;
24 | PDH_HCOUNTER m_cpuTotal;
25 | };
26 |
27 | #endif // PROCESSORINFO_H
28 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/images/flatten.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/tests/manual/renderslicetoimage/surfacegraphwidget.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "surfacegraphwidget.h"
5 |
6 | #include
7 |
8 | SurfaceGraphWidget::SurfaceGraphWidget() {}
9 |
10 | SurfaceGraphWidget::~SurfaceGraphWidget() {}
11 |
12 | void SurfaceGraphWidget::initialize()
13 | {
14 | m_surfaceGraph = new Q3DSurfaceWidgetItem();
15 | m_surfaceGraph->setWidget(this);
16 | }
17 |
18 | Q3DSurfaceWidgetItem *SurfaceGraphWidget::surfaceGraph() const
19 | {
20 | return m_surfaceGraph;
21 | }
22 |
--------------------------------------------------------------------------------
/tests/manual/renderslicetoimage/bargraphwidget.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef BARGRAPHWIDGET_H
5 | #define BARGRAPHWIDGET_H
6 |
7 | #include
8 |
9 | class Q3DBarsWidgetItem;
10 |
11 | class BarGraphWidget : public QQuickWidget
12 | {
13 | Q_OBJECT
14 | public:
15 | BarGraphWidget();
16 | ~BarGraphWidget() override;
17 |
18 | void initialize();
19 | Q3DBarsWidgetItem *barGraph() const;
20 |
21 | private:
22 | Q3DBarsWidgetItem *m_barGraph = nullptr;
23 | };
24 |
25 | #endif // BARGRAPHWIDGET_H
26 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/scatter.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/scatter/Data.qml
4 | qml/scatter/Graph.qml
5 | qml/scatter/main.qml
6 | images/background.svg
7 | images/background_hide.svg
8 | images/camera.svg
9 | images/camera2.svg
10 | images/flatten.svg
11 | images/shadow.svg
12 | images/shadow_hide.svg
13 | images/smooth_curve.svg
14 | images/theme.svg
15 |
16 |
17 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/qml/graphprinting/flatten.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/sync.profile:
--------------------------------------------------------------------------------
1 | %modules = ( # path to module name map
2 | "QtGraphs" => "$basedir/src/graphs3d"
3 | );
4 | %moduleheaders = ( # restrict the module headers to those found in relative path
5 | );
6 | # Module dependencies.
7 | # Every module that is required to build this module should have one entry.
8 | # Each of the module version specifiers can take one of the following values:
9 | # - A specific Git revision.
10 | # - any git symbolic ref resolvable from the module's repository (e.g. "refs/heads/master" to track master branch)
11 | #
12 | %dependencies = (
13 | "qtbase" => "",
14 | "qtdeclarative" => "",
15 | "qtquick3d" => "",
16 | );
17 |
--------------------------------------------------------------------------------
/tests/manual/minimalbars/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_minimalbars LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_minimalbars
12 | GUI
13 | SOURCES
14 | ../../../src/graphs3d/widget/doc/snippets/doc_src_q3dbars_construction.cpp
15 | )
16 | target_link_libraries(tst_minimalbars PUBLIC
17 | Qt::Gui
18 | Qt::Graphs
19 | Qt::GraphsWidgets
20 | )
21 |
--------------------------------------------------------------------------------
/src/common/theme/qquickgraphscolor.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "qquickgraphscolor_p.h"
5 |
6 | QT_BEGIN_NAMESPACE
7 |
8 | QQuickGraphsColor::QQuickGraphsColor(QObject *parent)
9 | : QObject(parent)
10 | {}
11 |
12 | QQuickGraphsColor::~QQuickGraphsColor() {}
13 |
14 | void QQuickGraphsColor::setColor(QColor color)
15 | {
16 | if (m_color != color) {
17 | m_color = color;
18 | emit colorChanged(color);
19 | }
20 | }
21 |
22 | QColor QQuickGraphsColor::color() const
23 | {
24 | return m_color;
25 | }
26 |
27 | QT_END_NAMESPACE
28 |
--------------------------------------------------------------------------------
/src/graphs3d/widget/qgraphswidgetsglobal.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | //
5 | // W A R N I N G
6 | // -------------
7 | //
8 | // This file is not part of the QtGraphs API. It exists purely as an
9 | // implementation detail. This header file may change from version to
10 | // version without notice, or even be removed.
11 | //
12 | // We mean it.
13 | #ifndef QTGRAPHS_QGRAPHSWIDGETGLOBAL_H
14 | #define QTGRAPHS_QGRAPHSWIDGETGLOBAL_H
15 | #include
16 | #include
17 |
18 | #endif // QTGRAPHS_QGRAPHSWIDGETGLOBAL_H
19 |
--------------------------------------------------------------------------------
/tests/auto/cpptest/common/cpptestutil.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3 |
4 | #ifndef CPPTESTUTIL_H
5 | #define CPPTESTUTIL_H
6 |
7 | #include
8 | #include
9 |
10 | QT_BEGIN_NAMESPACE
11 |
12 | namespace CpptestUtil {
13 |
14 | [[maybe_unused]] static inline bool isOpenGLSupported()
15 | {
16 | return QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL);
17 | }
18 |
19 | } // CpptestUtil namespace
20 |
21 | QT_END_NAMESPACE
22 |
23 | #endif
24 |
25 |
--------------------------------------------------------------------------------
/tests/manual/itemmodel/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_itemmodel LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_itemmodel
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_itemmodel PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Widgets
23 | Qt::Graphs
24 | Qt::GraphsWidgets
25 | )
26 |
--------------------------------------------------------------------------------
/tests/manual/minimalscatter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_minimalscatter LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_minimalscatter
12 | GUI
13 | SOURCES
14 | ../../../src/graphs3d/widget/doc/snippets/doc_src_q3dscatter_construction.cpp
15 | )
16 | target_link_libraries(tst_minimalscatter PUBLIC
17 | Qt::Gui
18 | Qt::Graphs
19 | Qt::GraphsWidgets
20 | )
21 |
--------------------------------------------------------------------------------
/tests/manual/minimalsurface/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_minimalsurface LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_minimalsurface
12 | GUI
13 | SOURCES
14 | ../../../src/graphs3d/widget/doc/snippets/doc_src_q3dsurface_construction.cpp
15 | )
16 | target_link_libraries(tst_minimalsurface PUBLIC
17 | Qt::Gui
18 | Qt::Graphs
19 | Qt::GraphsWidgets
20 | )
21 |
--------------------------------------------------------------------------------
/examples/graphs/2d/hellographs/main.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | int main(int argc, char *argv[])
9 | {
10 | QGuiApplication app(argc, argv);
11 |
12 | QQuickView viewer;
13 |
14 | viewer.setTitle(QStringLiteral("HelloGraphs"));
15 |
16 | viewer.setSource(QUrl("qrc:/qml/hellographs/main.qml"));
17 | viewer.setResizeMode(QQuickView::SizeRootObjectToView);
18 | viewer.setColor("black");
19 | viewer.show();
20 |
21 | return app.exec();
22 | }
23 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/cockpit.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | qml/cockpit/airplane-ico.png
4 | qml/cockpit/ArtificialHorizon.qml
5 | qml/cockpit/bar.frag.qsb
6 | qml/cockpit/circleMarker.frag.qsb
7 | qml/cockpit/ControlPanel.qml
8 | qml/cockpit/main.qml
9 | qml/cockpit/Map.qml
10 | qml/cockpit/pitchbar.frag.qsb
11 | qml/cockpit/plane-fro.png
12 | qml/cockpit/Speedometer.qml
13 | qml/cockpit/VibrationSensor.qml
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/common/global/qgraphsglobal.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef QTGRAPHS_QGRAPHSGLOBAL_H
5 | #define QTGRAPHS_QGRAPHSGLOBAL_H
6 |
7 | #include
8 | #include
9 |
10 | #ifdef QTDATAVIS3D_HEADERS
11 | #error Mixing QtDataVisualization and QtGraphs in the same TU is unsupported since they use\
12 | the same class names.
13 | #endif
14 |
15 | #ifdef QTCHARTS_HEADERS
16 | #error Mixing QtCharts and QtGraphs in the same TU is unsupported since they use\
17 | the same class names.
18 | #endif
19 |
20 | #define QTGRAPHS_HEADERS
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/tests/auto/qmltest/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | file(GLOB_RECURSE test_data_glob
5 | RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
6 | *)
7 | list(APPEND test_data ${test_data_glob})
8 |
9 | qt_internal_add_test(tst_qgqmltest
10 | QMLTEST
11 | SOURCES
12 | tst_qmltest.cpp
13 | LIBRARIES
14 | Qt::Gui
15 | TESTDATA ${test_data}
16 | )
17 |
18 | set(qmltest_resource_files
19 | "customitem.mesh"
20 | "customtexture.jpg"
21 | )
22 |
23 | qt_internal_add_resource(tst_qgqmltest "qmltest"
24 | PREFIX
25 | "/"
26 | FILES
27 | ${qmltest_resource_files}
28 | )
29 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/default/Scatter3D.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick 2.0
5 | import QtGraphs
6 |
7 | Scatter3D {
8 | width: 300
9 | height: 300
10 | Scatter3DSeries {
11 | ItemModelScatterDataProxy {
12 | itemModel: ListModel {
13 | ListElement{ x: "1"; y: "2"; z: "3"; }
14 | ListElement{ x: "2"; y: "3"; z: "4"; }
15 | ListElement{ x: "3"; y: "4"; z: "1"; }
16 | }
17 |
18 | xPosRole: "x"
19 | yPosRole: "y"
20 | zPosRole: "z"
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tests/baseline/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
5 | cmake_minimum_required(VERSION 3.16)
6 | project(tst_qgraphs LANGUAGES CXX)
7 | find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
8 | endif()
9 |
10 | # Special case: test includes the QBaselineTest module sources from qtbase directly
11 | if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../qtbase/tests/baseline/shared"
12 | AND TARGET Qt6::Quick3D)
13 | add_subdirectory(scenegrabber)
14 | if (QT_FEATURE_process)
15 | add_subdirectory(graphs)
16 | endif()
17 | endif()
18 |
--------------------------------------------------------------------------------
/tests/manual/renderslicetoimage/surfacegraphwidget.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef SURFACEGRAPHWIDGET_H
5 | #define SURFACEGRAPHWIDGET_H
6 |
7 | #include
8 |
9 | class Q3DSurfaceWidgetItem;
10 |
11 | class SurfaceGraphWidget : public QQuickWidget
12 | {
13 | Q_OBJECT
14 | public:
15 | SurfaceGraphWidget();
16 | ~SurfaceGraphWidget() override;
17 |
18 | void initialize();
19 | Q3DSurfaceWidgetItem *surfaceGraph() const;
20 |
21 | private:
22 | Q3DSurfaceWidgetItem *m_surfaceGraph = nullptr;
23 | };
24 |
25 | #endif // SURFACEGRAPHWIDGET_H
26 |
--------------------------------------------------------------------------------
/tests/manual/qmlspline/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
5 |
6 | qt_internal_add_manual_test(tst_qmlspline
7 | GUI
8 | SOURCES
9 | main.cpp
10 | )
11 |
12 | target_sources(tst_qmlspline
13 | PRIVATE
14 | splinegen.h splinegen.cpp
15 | )
16 |
17 | target_link_libraries(tst_qmlspline PUBLIC
18 | Qt::Gui
19 | Qt::Graphs
20 | )
21 |
22 | set(qmlspline_resource_files
23 | "qml/qmlspline/main.qml"
24 | )
25 |
26 | qt_internal_add_resource(tst_qmlspline "qmlspline"
27 | PREFIX
28 | "/"
29 | FILES
30 | ${qmlspline_resource_files}
31 | )
32 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/images/shadow.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/tests/manual/scattertest/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_scattertest LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_scattertest
14 | GUI
15 | SOURCES
16 | main.cpp
17 | scatterchart.cpp scatterchart.h
18 | )
19 | target_link_libraries(tst_scattertest PUBLIC
20 | Qt::Gui
21 | Qt::Widgets
22 | Qt::Graphs
23 | Qt::GraphsWidgets
24 | )
25 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/images/background.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/custombarseries.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef CUSTOMBARSERIES_H
5 | #define CUSTOMBARSERIES_H
6 |
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 |
13 | class CustomBarSeries : public QBarSeries
14 | {
15 | Q_OBJECT
16 | QML_ELEMENT
17 | public:
18 | CustomBarSeries(QBarSeries *parent = nullptr);
19 |
20 | public Q_SLOTS:
21 | void updateData();
22 |
23 | private:
24 | QList m_sets;
25 | QTimer m_updateTimer;
26 | };
27 |
28 | #endif // CUSTOMBARSERIES_H
29 |
--------------------------------------------------------------------------------
/tests/manual/directional/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_directional LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_directional
14 | GUI
15 | SOURCES
16 | main.cpp
17 | scatterdatamodifier.cpp scatterdatamodifier.h
18 | )
19 | target_link_libraries(tst_directional PUBLIC
20 | Qt::Gui
21 | Qt::Widgets
22 | Qt::Graphs
23 | Qt::GraphsWidgets
24 | )
25 |
--------------------------------------------------------------------------------
/examples/graphs/2d/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | if(TARGET Qt::Quick)
5 | if(QT_FEATURE_graphs_2d_bar AND QT_FEATURE_graphs_2d_line)
6 | qt_internal_add_example(hellographs)
7 | endif()
8 | if(QT_FEATURE_graphs_2d_area AND QT_FEATURE_graphs_2d_bar AND QT_FEATURE_graphs_2d_donut_pie AND QT_FEATURE_graphs_2d_line AND QT_FEATURE_graphs_2d_scatter AND QT_FEATURE_graphs_2d_spline)
9 | qt_internal_add_example(cockpit)
10 | endif()
11 | endif()
12 | if(NOT ANDROID AND NOT IOS AND NOT WINRT)
13 | if(QT_FEATURE_graphs_2d_donut_pie)
14 | qt_internal_add_example(quickwidgetgraphs)
15 | endif()
16 | endif()
17 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/bar.frag:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #version 450 core
5 |
6 | layout(location = 0) in vec2 qt_TexCoord0;
7 | layout(location = 0) out vec4 fragColor;
8 |
9 | layout (std140, binding = 0) uniform buf
10 | {
11 | mat4 qt_Matrix;
12 | float qt_Opacity;
13 | float iTime;
14 | vec4 iColor;
15 | vec3 iResolution;
16 | };
17 |
18 |
19 | void main() {
20 | vec2 uv = qt_TexCoord0;
21 |
22 | uv *= 6. * vec2(iResolution.x / iResolution.y, 1.);
23 | uv = fract(uv);
24 | uv -= 0.5;
25 |
26 | float k = length(uv);
27 | k = step(k, 0.4);
28 |
29 | fragColor = iColor * k;
30 | }
31 |
--------------------------------------------------------------------------------
/src/graphs2d/qml/designer/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | file(GLOB_RECURSE designer_image_files
5 | RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
6 | "images/*.png"
7 | )
8 | qt_path_join(images_destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtGraphs/designer/images")
9 | qt_copy_or_install(
10 | FILES
11 | ${designer_image_files}
12 | DESTINATION "${images_destination}"
13 | )
14 |
15 | qt_path_join(destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtGraphs/designer")
16 | qt_copy_or_install(
17 | FILES
18 | GraphsViewSpecifics.qml
19 | qtgraphs2d.metainfo
20 | DESTINATION "${destination}"
21 | )
22 |
23 | add_subdirectory(default)
24 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/scattergraphwidget.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 | #ifndef SCATTERGRAPHWIDGET_H
4 | #define SCATTERGRAPHWIDGET_H
5 |
6 | #include
7 | #include
8 |
9 | class ScatterGraphWidget : public QQuickWidget
10 | {
11 | Q_OBJECT
12 | public:
13 | Q_DISABLE_COPY_MOVE(ScatterGraphWidget)
14 |
15 | ScatterGraphWidget();
16 | ~ScatterGraphWidget();
17 | void initialize();
18 |
19 | Q3DScatterWidgetItem *scatterGraph() const;
20 |
21 | private:
22 | Q3DScatterWidgetItem *m_scatterGraph = nullptr;
23 | };
24 |
25 | #endif // SCATTERGRAPHWIDGET_H
26 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/main.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | int main(int argc, char *argv[])
9 | {
10 | QGuiApplication app(argc, argv);
11 |
12 | QQuickView viewer;
13 |
14 | viewer.setTitle(QStringLiteral("Cockpit"));
15 |
16 | viewer.setMaximumSize({1280, 720});
17 | viewer.setMinimumSize({1280, 720});
18 | viewer.setSource(QUrl("qrc:/qml/cockpit/main.qml"));
19 | viewer.setResizeMode(QQuickView::SizeRootObjectToView);
20 | viewer.setColor("black");
21 | viewer.show();
22 |
23 | return app.exec();
24 | }
25 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/default/Bars3D.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick 2.0
5 | import QtGraphs
6 |
7 | Bars3D {
8 | width: 300
9 | height: 300
10 | Bar3DSeries {
11 | ItemModelBarDataProxy {
12 | itemModel: ListModel {
13 | ListElement{ row: "row 1"; column: "column 1"; value: "1"; }
14 | ListElement{ row: "row 1"; column: "column 2"; value: "2"; }
15 | ListElement{ row: "row 1"; column: "column 3"; value: "3"; }
16 | }
17 |
18 | rowRole: "row"
19 | columnRole: "column"
20 | valueRole: "value"
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/surfacegraphwidget.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 | #ifndef SURFACEGRAPHWIDGET_H
4 | #define SURFACEGRAPHWIDGET_H
5 |
6 | #include
7 | #include
8 |
9 | class SurfaceGraphWidget : public QQuickWidget
10 | {
11 | Q_OBJECT
12 | public:
13 | Q_DISABLE_COPY_MOVE(SurfaceGraphWidget)
14 |
15 | SurfaceGraphWidget();
16 | ~SurfaceGraphWidget() override;
17 |
18 | void initialize();
19 | Q3DSurfaceWidgetItem *surfaceGraph() const;
20 |
21 | private:
22 | Q3DSurfaceWidgetItem *m_surfaceGraph = nullptr;
23 | };
24 |
25 | #endif // SURFACEGRAPHWIDGET_H
26 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/scatterseries.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "scatterseries.h"
5 |
6 | ScatterSeries::ScatterSeries(QScatterSeries *series)
7 | : m_cpuUpdater(this)
8 | {
9 | connect(&m_timer, &QTimer::timeout, this, &ScatterSeries::frameUpdate);
10 | m_timer.start(100);
11 |
12 | for (int i = 0; i < 5; ++i)
13 | append(QPointF(double(i), double(i)));
14 | }
15 |
16 | void ScatterSeries::frameUpdate()
17 | {
18 | auto reading = m_cpuUpdater.update();
19 |
20 | replace(m_counter, m_counter, reading);
21 | m_counter++;
22 |
23 | emit update();
24 |
25 | if (m_counter == 5)
26 | m_counter = 0;
27 | }
28 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/circleMarker.frag:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #version 450 core
5 |
6 | layout(location = 0) in vec2 qt_TexCoord0;
7 | layout(location = 0) out vec4 fragColor;
8 |
9 | layout (std140, binding = 0) uniform buf
10 | {
11 | mat4 qt_Matrix;
12 | float qt_Opacity;
13 | vec3 iResolution;
14 | float iTime;
15 | };
16 |
17 |
18 | void main() {
19 | vec2 uv = qt_TexCoord0;
20 | uv.x *= iResolution.x / iResolution.y;
21 |
22 | uv -= vec2(0.5);
23 | float a = length(uv);
24 | a *= 20.;
25 | a = abs(sin(a - iTime));
26 |
27 | a *= 1. - length(uv * 2.);
28 |
29 | fragColor = vec4(a,a,a,a);
30 | }
31 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/bargraph.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #ifndef BARGRAPH_H
5 | #define BARGRAPH_H
6 |
7 | #include
8 | #include
9 | #include "graphmodifier.h"
10 |
11 | class BarGraph : public QObject
12 | {
13 | Q_OBJECT
14 | public:
15 | BarGraph(QWidget *parent = nullptr);
16 |
17 | void initialize();
18 | QWidget *barsWidget() { return m_container; }
19 |
20 | private:
21 | GraphModifier *m_modifier = nullptr;
22 | Q3DBarsWidgetItem *m_barGraph = nullptr;
23 | QQuickWidget *m_quickWidget = nullptr;
24 | QWidget *m_container = nullptr;
25 | };
26 |
27 | #endif
28 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/candlestick.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef CANDLESTICK_H
5 | #define CANDLESTICK_H
6 |
7 | #include
8 |
9 | class Candlestick : public QCustomSeries
10 | {
11 | Q_OBJECT
12 | QML_ELEMENT
13 |
14 | struct CandlestickData
15 | {
16 | qreal open = 0;
17 | qreal close = 0;
18 | qreal high = 0;
19 | qreal low = 0;
20 | };
21 |
22 | QList m_data;
23 |
24 | protected:
25 | void updateDelegate(QQuickItem *item, qsizetype index) override;
26 |
27 | public:
28 | Candlestick(QObject *parent = nullptr);
29 | };
30 |
31 | #endif // CANDLESTICK_H
32 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/qml/graphprinting/documents_fill.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/graphprinter.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #ifndef GRAPHPRINTER_H
5 | #define GRAPHPRINTER_H
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | class GraphPrinter : public QObject {
12 | Q_OBJECT
13 | QML_ELEMENT
14 | public:
15 | explicit GraphPrinter(QObject *parent = 0);
16 | ~GraphPrinter() override;
17 |
18 | Q_INVOKABLE QString generatePDF(const QUrl &path, const QImage &image);
19 | Q_INVOKABLE QString print(const QImage &image, const QString printerName);
20 | Q_INVOKABLE QStringList getPrinters();
21 | Q_INVOKABLE qreal maxTextureSize();
22 | };
23 |
24 | #endif // GRAPHPRINTER_H
25 |
--------------------------------------------------------------------------------
/src/graphs3d/utils/qutils.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef QTGRAPHS_QUTILS_H
5 | #define QTGRAPHS_QUTILS_H
6 |
7 | #include
8 | #include
9 | #include
10 | #include
11 |
12 |
13 | QT_BEGIN_NAMESPACE
14 |
15 | [[maybe_unused]] static inline QSurfaceFormat qDefaultSurfaceFormat(bool antialias)
16 | {
17 | QSurfaceFormat surfaceFormat;
18 |
19 | if (antialias)
20 | surfaceFormat = QQuick3D::idealSurfaceFormat(8);
21 | else
22 | surfaceFormat = QQuick3D::idealSurfaceFormat();
23 |
24 | return surfaceFormat;
25 | }
26 |
27 | QT_END_NAMESPACE
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/tests/manual/rotations/main.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 |
5 | #include
6 | #include
7 | #include
8 | #include "magneticfield.h"
9 | #include "customitemrotation.h"
10 |
11 | int main(int argc, char **argv)
12 | {
13 |
14 | QApplication app(argc, argv);
15 | MagneticField magneticField;
16 | CustomItemRotation customItemRotation;
17 |
18 | QTabWidget tabWidget;
19 |
20 | tabWidget.addTab(magneticField.widget(), "Magnetic field");
21 | tabWidget.addTab(customItemRotation.widget(), "Custom item rotation");
22 | tabWidget.show();
23 |
24 | int retVal = app.exec();
25 | return retVal;
26 | }
27 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/default/Surface3D.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick 2.0
5 | import QtGraphs
6 |
7 | Surface3D {
8 | width: 300
9 | height: 300
10 | Surface3DSeries {
11 | ItemModelSurfaceDataProxy {
12 | itemModel: ListModel {
13 | ListElement{ row: "1"; column: "1"; y: "1"; }
14 | ListElement{ row: "1"; column: "2"; y: "2"; }
15 | ListElement{ row: "2"; column: "1"; y: "3"; }
16 | ListElement{ row: "2"; column: "2"; y: "4"; }
17 | }
18 |
19 | rowRole: "row"
20 | columnRole: "column"
21 | yPosRole: "y"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/scatterseries.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef SCATTERSERIES_H
5 | #define SCATTERSERIES_H
6 |
7 | #include "cpuusageupdater.h"
8 |
9 | #include
10 | #include
11 | #include
12 | #include
13 |
14 | class ScatterSeries : public QScatterSeries
15 | {
16 | Q_OBJECT
17 | QML_NAMED_ELEMENT(CustomScatter)
18 |
19 | public:
20 | ScatterSeries(QScatterSeries *series = nullptr);
21 |
22 | public Q_SLOTS:
23 | void frameUpdate();
24 |
25 | private:
26 | QTimer m_timer;
27 | CpuUsageUpdater m_cpuUpdater;
28 | int m_counter = 0;
29 | };
30 |
31 | #endif // SCATTERSERIES_H
32 |
--------------------------------------------------------------------------------
/examples/graphs/2d/cockpit/qml/cockpit/pitchbar.frag:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #version 450 core
5 |
6 | layout(location = 0) in vec2 qt_TexCoord0;
7 | layout(location = 0) out vec4 fragColor;
8 |
9 | layout (std140, binding = 0) uniform buf
10 | {
11 | mat4 qt_Matrix;
12 | float qt_Opacity;
13 | vec3 iResolution;
14 | };
15 |
16 |
17 | void main() {
18 | vec2 uv = qt_TexCoord0;
19 |
20 | uv.y *= iResolution.y / iResolution.x;
21 |
22 | float b = length(uv - 0.5);
23 | b = step(b, 0.5);
24 | float k = step(uv.y, 1.0);
25 | float a = step(1 - qt_TexCoord0.y, 0.9) * (1 - qt_TexCoord0.y);
26 | a += b;
27 | k *= a * b;
28 | fragColor = vec4(k,k,k,a);
29 | }
30 |
--------------------------------------------------------------------------------
/tests/manual/qmlbenchmark2d/datasource.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef DATASOURCE_H
5 | #define DATASOURCE_H
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | QT_FORWARD_DECLARE_CLASS(QQuickView)
12 |
13 | class DataSource : public QObject
14 | {
15 | Q_OBJECT
16 |
17 | public:
18 | explicit DataSource(QObject *parent = nullptr);
19 |
20 | public slots:
21 | void generateData();
22 | void reset(int dataScale);
23 | void update(QObject *series);
24 |
25 | private:
26 | QList>> m_data;
27 | int m_index = -1;
28 | int m_testIndex = 0;
29 | qint64 m_timer = 0;
30 | int m_dataScale = 1000;
31 | };
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/scattergraph.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #ifndef SCATTERGRAPH_H
5 | #define SCATTERGRAPH_H
6 |
7 | #include
8 | #include
9 | #include "scatterdatamodifier.h"
10 | #include "scattergraphwidget.h"
11 |
12 | class ScatterGraph : public QObject
13 | {
14 | Q_OBJECT
15 | public:
16 | ScatterGraph(QWidget *parent = nullptr);
17 |
18 | void initialize();
19 | QWidget *scatterWidget() { return m_scatterWidget; }
20 |
21 | private:
22 | ScatterDataModifier *m_modifier = nullptr;
23 | ScatterGraphWidget *m_scatterGraphWidget = nullptr;
24 | QWidget *m_scatterWidget = nullptr;
25 | };
26 |
27 | #endif
28 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/surfacegraph.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #ifndef SURFACEGRAPH_H
5 | #define SURFACEGRAPH_H
6 |
7 | #include
8 | #include
9 | #include "surfacegraphmodifier.h"
10 | #include "surfacegraphwidget.h"
11 |
12 | class SurfaceGraph : public QObject
13 | {
14 | Q_OBJECT
15 | public:
16 | SurfaceGraph(QWidget *parent = nullptr);
17 |
18 | void initialize();
19 | QWidget *surfaceWidget() { return m_surfaceWidget; }
20 |
21 | private:
22 | SurfaceGraphModifier *m_modifier = nullptr;
23 | SurfaceGraphWidget *m_surfaceGraphWidget = nullptr;
24 | QWidget *m_surfaceWidget = nullptr;
25 | };
26 |
27 | #endif
28 |
--------------------------------------------------------------------------------
/src/common/utils/commonutils_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | //
5 | // W A R N I N G
6 | // -------------
7 | //
8 | // This file is not part of the QtGraphs API. It exists purely as an
9 | // implementation detail. This header file may change from version to
10 | // version without notice, or even be removed.
11 | //
12 | // We mean it.
13 |
14 | #ifndef COMMONUTILS_P_H
15 | #define COMMONUTILS_P_H
16 |
17 | #include
18 | #include
19 |
20 | QT_BEGIN_NAMESPACE
21 |
22 | Q_DECLARE_LOGGING_CATEGORY(lcGraphsCommonUtils)
23 |
24 | class CommonUtils
25 | {
26 | public:
27 | static qreal maxTextureSize();
28 | };
29 |
30 | QT_END_NAMESPACE
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/barseries.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "barseries.h"
5 |
6 | #include
7 |
8 | BarSeries::BarSeries(QObject *parent)
9 | : QBarSeries(parent)
10 | , m_cpuUpdater(this)
11 | , m_counter(0)
12 | {
13 | connect(&m_timer, &QTimer::timeout, this, &BarSeries::frameUpdate);
14 | m_timer.start(100);
15 |
16 | m_barList = new QBarSet(this);
17 |
18 | for (int i = 0; i < 5; ++i)
19 | m_barList->append(double(0));
20 | }
21 |
22 | void BarSeries::frameUpdate()
23 | {
24 | auto reading = m_cpuUpdater.update();
25 |
26 | m_barList->replace(m_counter++, reading);
27 |
28 | if (m_counter == 5)
29 | m_counter = 0;
30 | }
31 |
--------------------------------------------------------------------------------
/tests/manual/rotations/magneticfield.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef MAGNETICFIELD_H
5 | #define MAGNETICFIELD_H
6 |
7 | #include
8 | #include
9 | #include
10 | #include "scatterdatamodifier.h"
11 |
12 | class MagneticField : public QObject
13 | {
14 | Q_OBJECT
15 |
16 | public:
17 | MagneticField(QObject *parent = nullptr);
18 |
19 | void initialize();
20 | QWidget *widget() {return m_container;};
21 |
22 | private:
23 | Q3DScatterWidgetItem *graph = nullptr;
24 | QQuickWidget *quickWidget = nullptr;
25 | ScatterDataModifier *modifier = nullptr;
26 | QWidget *m_container = nullptr;
27 | };
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/tests/manual/qmlvectorfield/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlvectorfield LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlvectorfield
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmlvectorfield PUBLIC
20 | Qt::Gui
21 | Qt::Graphs
22 | Qt::GraphsWidgets
23 | )
24 |
25 | qt_internal_add_resource(tst_qmlvectorfield "qmlvectorfield"
26 | PREFIX
27 | "/"
28 | FILES
29 | "qml/qmlvectorfield/main.qml"
30 | )
31 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/qml/graphprinting/folder_fill.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/barseries.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef BARSERIESHELPER_H
5 | #define BARSERIESHELPER_H
6 |
7 | #include "cpuusageupdater.h"
8 |
9 | #include
10 | #include
11 | #include
12 | #include
13 | #include
14 |
15 | class BarSeries : public QBarSeries
16 | {
17 | Q_OBJECT
18 | QML_NAMED_ELEMENT(CustomBar)
19 |
20 | public:
21 | BarSeries(QObject *parent = nullptr);
22 |
23 | public Q_SLOTS:
24 | void frameUpdate();
25 |
26 | private:
27 | QBarSet *m_barList;
28 | QTimer m_timer;
29 | CpuUsageUpdater m_cpuUpdater;
30 | int m_counter;
31 | };
32 |
33 | #endif // BARSERIESHELPER_H
34 |
--------------------------------------------------------------------------------
/tests/auto/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | if(NOT ANDROID)
5 | if(QT_FEATURE_graphs_3d)
6 | add_subdirectory(cpptest)
7 | endif()
8 | if(QT_FEATURE_graphs_2d)
9 | add_subdirectory(cpp2dtest)
10 | endif()
11 | endif()
12 |
13 | if(TARGET Qt::Quick AND NOT boot2qt)
14 | if(QT_FEATURE_graphs_3d AND QT_FEATURE_graphs_3d_bars3d AND QT_FEATURE_graphs_3d_scatter3d AND QT_FEATURE_graphs_3d_surface3d)
15 | add_subdirectory(qmltest)
16 | endif()
17 | if(QT_FEATURE_graphs_2d AND QT_FEATURE_graphs_2d_area AND QT_FEATURE_graphs_2d_bar AND QT_FEATURE_graphs_2d_donut_pie AND QT_FEATURE_graphs_2d_line AND QT_FEATURE_graphs_2d_scatter AND QT_FEATURE_graphs_2d_spline)
18 | add_subdirectory(qml2dtest)
19 | endif()
20 | endif()
21 |
--------------------------------------------------------------------------------
/tests/manual/qmldynamicdata/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmldynamicdata LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_qmldynamicdata
12 | GUI
13 | SOURCES
14 | main.cpp
15 | )
16 | target_link_libraries(tst_qmldynamicdata PUBLIC
17 | Qt::Gui
18 | Qt::Graphs
19 | )
20 |
21 | set(qmldynamicdata_resource_files
22 | "qml/qmldynamicdata/main.qml"
23 | )
24 |
25 | qt_internal_add_resource(tst_qmldynamicdata "qmldynamicdata"
26 | PREFIX
27 | "/"
28 | FILES
29 | ${qmldynamicdata_resource_files}
30 | )
31 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/cpuusageupdater.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef CPUUSAGEUPDATER_H
5 | #define CPUUSAGEUPDATER_H
6 |
7 | #include
8 | #include
9 |
10 | #include "processorinfo.h"
11 |
12 | class CpuUsageUpdater : public QObject
13 | {
14 | Q_OBJECT
15 |
16 | Q_PROPERTY(qreal usage READ usage WRITE setUsage NOTIFY usageChanged FINAL)
17 |
18 | public:
19 | CpuUsageUpdater(QObject *parent = nullptr);
20 |
21 | double update();
22 |
23 | qreal usage() const;
24 | void setUsage(qreal newUsage);
25 |
26 | signals:
27 | void usageChanged();
28 |
29 | private:
30 | qreal m_usage;
31 |
32 | ProcessorInfo m_processorInfo;
33 | };
34 |
35 | #endif // CPUUSAGEUPDATER_H
36 |
--------------------------------------------------------------------------------
/src/graphs2d/scatterchart/qscatterseries_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | // W A R N I N G
5 | // -------------
6 | //
7 | // This file is not part of the Qt Graphs API. It exists purely as an
8 | // implementation detail. This header file may change from version to
9 | // version without notice, or even be removed.
10 | //
11 | // We mean it.
12 |
13 | #ifndef QSCATTERSERIES_P_H
14 | #define QSCATTERSERIES_P_H
15 |
16 | #include
17 | #include
18 |
19 | QT_BEGIN_NAMESPACE
20 |
21 | class QScatterSeriesPrivate : public QXYSeriesPrivate
22 | {
23 | public:
24 | QScatterSeriesPrivate();
25 |
26 | private:
27 | Q_DECLARE_PUBLIC(QScatterSeries)
28 | };
29 |
30 | QT_END_NAMESPACE
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/tests/manual/rotations/customitemrotation.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef CUSTOMITEMROTATION_H
5 | #define CUSTOMITEMROTATION_H
6 |
7 | #include
8 | #include
9 | #include
10 | #include "customitemdatamodifier.h"
11 |
12 | class CustomItemRotation : public QObject
13 | {
14 | Q_OBJECT
15 |
16 | public:
17 | CustomItemRotation(QObject *parent = nullptr);
18 |
19 | void initialize();
20 | QWidget *widget() {return m_container;};
21 |
22 | private:
23 | Q3DScatterWidgetItem *graph = nullptr;
24 | QQuickWidget *quickWidget = nullptr;
25 | CustomItemDataModifier *modifier = nullptr;
26 | QWidget *m_container = nullptr;
27 | };
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/examples/graphs/3d/widgetgraphgallery/topographicseries.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #ifndef TOPOGRAPHICSERIES_H
5 | #define TOPOGRAPHICSERIES_H
6 |
7 | #include
8 |
9 | class TopographicSeries : public QSurface3DSeries
10 | {
11 | Q_OBJECT
12 | public:
13 | Q_DISABLE_COPY_MOVE(TopographicSeries)
14 |
15 | TopographicSeries();
16 | ~TopographicSeries() override;
17 |
18 | void setTopographyFile(const QString &file, float width, float height);
19 |
20 | float sampleCountX() const { return m_sampleCountX; }
21 | float sampleCountZ() const { return m_sampleCountZ; }
22 |
23 | private:
24 | float m_sampleCountX = 0.f;
25 | float m_sampleCountZ = 0.f;
26 | };
27 |
28 | #endif // TOPOGRAPHICSERIES_H
29 |
--------------------------------------------------------------------------------
/src/graphs2d/data/lineshaderhorizontal.vert:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #version 440
4 |
5 | layout(location = 0) in vec4 qt_Vertex;
6 | layout(location = 1) in vec2 qt_MultiTexCoord0;
7 | layout(location = 0) out vec2 texCoord;
8 | layout(location = 1) out vec2 fragCoord;
9 |
10 | layout(std140, binding = 0) uniform buf {
11 | mat4 qt_Matrix;
12 | float qt_Opacity;
13 | vec3 iResolution;
14 | vec4 color;
15 | float lineWidth;
16 | float smoothing;
17 | };
18 |
19 | out gl_PerVertex { vec4 gl_Position; };
20 |
21 | #define HORIZONTAL 1
22 |
23 |
24 | void main() {
25 | texCoord = qt_MultiTexCoord0;
26 | fragCoord = qt_Vertex.xy;
27 | vec2 vertCoord = qt_Vertex.xy;
28 | gl_Position = qt_Matrix * vec4(vertCoord, 0.0, 1.0);
29 | }
30 |
--------------------------------------------------------------------------------
/src/graphs2d/data/lineshadervertical.vert:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #version 440
4 |
5 | layout(location = 0) in vec4 qt_Vertex;
6 | layout(location = 1) in vec2 qt_MultiTexCoord0;
7 | layout(location = 0) out vec2 texCoord;
8 | layout(location = 1) out vec2 fragCoord;
9 |
10 | layout(std140, binding = 0) uniform buf {
11 | mat4 qt_Matrix;
12 | float qt_Opacity;
13 | vec3 iResolution;
14 | vec4 color;
15 | float lineWidth;
16 | float smoothing;
17 | };
18 |
19 | out gl_PerVertex { vec4 gl_Position; };
20 |
21 | #define HORIZONTAL 0
22 |
23 |
24 | void main() {
25 | texCoord = qt_MultiTexCoord0;
26 | fragCoord = qt_Vertex.xy;
27 | vec2 vertCoord = qt_Vertex.xy;
28 | gl_Position = qt_Matrix * vec4(vertCoord, 0.0, 1.0);
29 | }
30 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/images/camera.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/tests/manual/qmlmultitest/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlmultitest LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_qmlmultitest
12 | GUI
13 | SOURCES
14 | main.cpp
15 | )
16 | target_link_libraries(tst_qmlmultitest PUBLIC
17 | Qt::Gui
18 | Qt::Graphs
19 | )
20 |
21 | set(qmlmultitest_resource_files
22 | "qml/qmlmultitest/Data.qml"
23 | "qml/qmlmultitest/main.qml"
24 | )
25 |
26 | qt_internal_add_resource(tst_qmlmultitest "qmlmultitest"
27 | PREFIX
28 | "/"
29 | FILES
30 | ${qmlmultitest_resource_files}
31 | )
32 |
--------------------------------------------------------------------------------
/tests/baseline/scenegrabber/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | qt_internal_add_executable(qgraphs_qmlscenegrabber
5 | OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." # special case
6 | SOURCES
7 | main.cpp
8 | LIBRARIES
9 | Qt::Gui
10 | Qt::Quick
11 | Qt::Quick3D
12 | Qt::CorePrivate
13 | )
14 |
15 | # Resources:
16 | qt_internal_add_resource(qgraphs_qmlscenegrabber "scenegrabber"
17 | PREFIX
18 | "/"
19 | FILES
20 | ${scenegrabber_resource_files}
21 | )
22 |
23 | # Turn it into a QML module which has no plugin (i.e. just a backing target)
24 | qt6_add_qml_module(qgraphs_qmlscenegrabber
25 | URI "QtGraphs.Lancelot"
26 | VERSION "${PROJECT_VERSION}"
27 | NO_GENERATE_PLUGIN_SOURCE
28 | RESOURCE_PREFIX "/"
29 | )
30 |
--------------------------------------------------------------------------------
/tests/manual/qmlbenchmark2d/chartsdatasource.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #ifndef CHARTSDATASOURCE_H
5 | #define CHARTSDATASOURCE_H
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | QT_FORWARD_DECLARE_CLASS(QQuickView)
12 |
13 | class ChartsDataSource : public QObject
14 | {
15 | Q_OBJECT
16 | public:
17 | explicit ChartsDataSource(QObject *parent = nullptr);
18 |
19 | public slots:
20 | void generateData();
21 | void reset(int dataScale);
22 | void update(QObject *series);
23 |
24 | private:
25 | QQuickView *m_appViewer = nullptr;
26 | QList>> m_data;
27 | int m_index = -1;
28 | int m_testIndex = 0;
29 | qint64 m_timer = 0;
30 | int m_dataScale = 1000;
31 | };
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/examples/graphs/3d/scatter/images/background_hide.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/examples/graphs/2d/quickwidgetgraphs/piewidget.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3 |
4 | #ifndef PIEWIDGET_H
5 | #define PIEWIDGET_H
6 |
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 |
13 | class PieGraph;
14 |
15 | class PieWidget : public QWidget
16 | {
17 | Q_OBJECT
18 | public:
19 | explicit PieWidget(QWidget *parent = nullptr);
20 | ~PieWidget();
21 |
22 | void initializeButtons();
23 | void initializeQuickWidget();
24 |
25 | QWidget *containerWidget() const;
26 | private:
27 | QWidget *m_widget;
28 | QQuickWidget *m_quickWidget;
29 | QVBoxLayout *m_vLayout;
30 | QHBoxLayout *m_hLayout;
31 |
32 | PieGraph *m_pieGraph;
33 | };
34 |
35 | #endif // PIEWIDGET_H
36 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/designer/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | file(GLOB_RECURSE designer_image_files
5 | RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
6 | "images/*.png"
7 | )
8 | qt_path_join(images_destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtGraphs/designer/images")
9 | qt_copy_or_install(
10 | FILES
11 | ${designer_image_files}
12 | DESTINATION "${images_destination}"
13 | )
14 |
15 | qt_path_join(destination ${QT_INSTALL_DIR} "${INSTALL_QMLDIR}/QtGraphs/designer")
16 | qt_copy_or_install(
17 | FILES
18 | Bars3DSpecifics.qml
19 | GraphsCameraSection.qml
20 | GraphsSection.qml
21 | Scatter3DSpecifics.qml
22 | Surface3DSpecifics.qml
23 | qtgraphs.metainfo
24 | DESTINATION "${destination}"
25 | )
26 |
27 | add_subdirectory(default)
28 |
--------------------------------------------------------------------------------
/tests/manual/qmlvolume/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlvolume LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlvolume
14 | GUI
15 | SOURCES
16 | datasource.cpp datasource.h
17 | main.cpp
18 | )
19 | target_link_libraries(tst_qmlvolume PUBLIC
20 | Qt::Gui
21 | Qt::Graphs
22 | )
23 |
24 | set(qmlvolume_resource_files
25 | "qml/qmlvolume/main.qml"
26 | )
27 |
28 | qt_internal_add_resource(tst_qmlvolume "qmlvolume"
29 | PREFIX
30 | "/"
31 | FILES
32 | ${qmlvolume_resource_files}
33 | )
34 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/gradientholder_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | //
5 | // W A R N I N G
6 | // -------------
7 | //
8 | // This file is not part of the QtGraphs API. It exists purely as an
9 | // implementation detail. This header file may change from version to
10 | // version without notice, or even be removed.
11 | //
12 | // We mean it.
13 |
14 | #ifndef GRADIENTHOLDER_P_H
15 | #define GRADIENTHOLDER_P_H
16 |
17 | #include
18 |
19 | QT_BEGIN_NAMESPACE
20 |
21 | class QQuickGradient;
22 | struct GradientHolder{
23 | QQuickGradient *m_baseGradient = nullptr;
24 | QQuickGradient *m_singleHighlightGradient = nullptr;
25 | QQuickGradient *m_multiHighlightGradient = nullptr;
26 | };
27 |
28 | QT_END_NAMESPACE
29 |
30 | #endif // GRADIENTHOLDER_P_H
31 |
--------------------------------------------------------------------------------
/coin/module_config.yaml:
--------------------------------------------------------------------------------
1 | version: 2
2 | accept_configuration:
3 | condition: property
4 | property: features
5 | not_contains_value: Disable
6 |
7 | instructions:
8 | Build:
9 | - type: EnvironmentVariable
10 | variableName: VERIFY_SOURCE_SBOM
11 | variableValue: "ON"
12 | - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml"
13 |
14 | Test:
15 | - type: Group
16 | instructions:
17 | - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml"
18 | - !include "{{qt/qtbase}}/coin_module_test_docs.yaml"
19 | disable_if:
20 | condition: or
21 | conditions:
22 | - condition: property
23 | property: configureArgs
24 | contains_value: "-DFEATURE_widgets=OFF"
25 | - condition: property
26 | property: configureArgs
27 | contains_value: "-no-widgets"
28 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/VolumeMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property vector3d minBounds
9 | property vector3d maxBounds
10 | property TextureInput textureSampler: TextureInput {}
11 | property TextureInput colorSampler: TextureInput {}
12 | property int color8Bit
13 | property vector3d textureDimensions
14 | property int sampleCount
15 | property real alphaMultiplier
16 | property int preserveOpacity
17 | property bool useOrtho
18 |
19 | shadingMode: CustomMaterial.Unshaded
20 | sourceBlend: CustomMaterial.SrcAlpha
21 | destinationBlend: CustomMaterial.OneMinusSrcAlpha
22 | vertexShader: "qrc:/shaders/texture3dvert"
23 | fragmentShader: "qrc:/shaders/texture3dfrag"
24 | }
25 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/VolumeLowDefMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property vector3d minBounds
9 | property vector3d maxBounds
10 | property TextureInput textureSampler: TextureInput {}
11 | property TextureInput colorSampler: TextureInput {}
12 | property int color8Bit
13 | property vector3d textureDimensions
14 | property int sampleCount
15 | property real alphaMultiplier
16 | property int preserveOpacity
17 | property bool useOrtho
18 |
19 | shadingMode: CustomMaterial.Unshaded
20 | sourceBlend: CustomMaterial.SrcAlpha
21 | destinationBlend: CustomMaterial.OneMinusSrcAlpha
22 | vertexShader: "qrc:/shaders/texture3dvert"
23 | fragmentShader: "qrc:/shaders/texture3dlowdeffrag"
24 | }
25 |
--------------------------------------------------------------------------------
/tests/manual/qmlbarscatter/processorinfo.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "processorinfo.h"
5 |
6 | ProcessorInfo::ProcessorInfo()
7 | : m_normalizedUsage(1.0)
8 | {
9 | PdhOpenQuery(NULL, NULL, &m_cpuQuery);
10 | PdhAddEnglishCounter(m_cpuQuery, L"\\Processor(_Total)\\% Processor Time", NULL, &m_cpuTotal);
11 | }
12 |
13 | ProcessorInfo::~ProcessorInfo()
14 | {
15 | PdhCloseQuery(m_cpuQuery);
16 | }
17 |
18 | double ProcessorInfo::updateTime()
19 | {
20 | PDH_FMT_COUNTERVALUE cVal;
21 |
22 | PdhCollectQueryData(m_cpuQuery);
23 | PdhGetFormattedCounterValue(m_cpuTotal, PDH_FMT_DOUBLE, NULL, &cVal);
24 |
25 | m_normalizedUsage = (((m_maxSamples - 1) * m_normalizedUsage) + cVal.doubleValue)
26 | / m_maxSamples;
27 |
28 | return m_normalizedUsage;
29 | }
30 |
--------------------------------------------------------------------------------
/tests/manual/multigraphs/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_multigraphs LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_multigraphs
14 | GUI
15 | SOURCES
16 | data.cpp data.h
17 | main.cpp
18 | )
19 | target_link_libraries(tst_multigraphs PUBLIC
20 | Qt::Gui
21 | Qt::Widgets
22 | Qt::Graphs
23 | Qt::GraphsWidgets
24 | )
25 |
26 | set(multigraphs_resource_files
27 | "australia.png"
28 | )
29 |
30 | qt_internal_add_resource(tst_multigraphs "multigraphs"
31 | PREFIX
32 | "/"
33 | FILES
34 | ${multigraphs_resource_files}
35 | )
36 |
--------------------------------------------------------------------------------
/tests/manual/qmlqtquick3dintegration/qml/qmlqtquick3dintegration/Axes.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs3D
6 |
7 | Item {
8 | property alias value: valueAxis
9 |
10 | Value3DAxis {
11 | id: valueAxis
12 | min: 0
13 | max: 35
14 |
15 | SequentialAnimation on max {
16 | running: true
17 | loops: Animation.Infinite
18 | NumberAnimation {
19 | from: 20
20 | to: 80
21 | duration: 7000
22 | easing.type: Easing.InOutCubic
23 | }
24 | NumberAnimation {
25 | from: 80
26 | to: 20
27 | duration: 7000
28 | easing.type: Easing.InOutCubic
29 | }
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/tests/manual/qmlline/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmllines LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmllines
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmllines PUBLIC
20 | Qt::Quick
21 | Qt::Graphs
22 | )
23 |
24 | set(qmllines_resource_files
25 | "qml/main.qml"
26 | )
27 |
28 | qt_internal_add_resource(tst_qmllines "qmllines"
29 | PREFIX
30 | "/"
31 | FILES
32 | ${qmllines_resource_files}
33 | )
34 |
35 | qt_add_qml_module(tst_qmllines
36 | URI qmllines
37 | VERSION 1.0
38 | QML_FILES qml/main.qml
39 | )
40 |
--------------------------------------------------------------------------------
/tests/manual/qmlgradient/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlgradient LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | qt_internal_add_manual_test(tst_qmlgradient
12 | GUI
13 | SOURCES
14 | main.cpp
15 | )
16 | target_link_libraries(tst_qmlgradient PUBLIC
17 | Qt::Gui
18 | Qt::Graphs
19 | )
20 |
21 | set(qmlgradient_resource_files
22 | "qml/qmlgradient/main.qml"
23 | "crater.png"
24 | )
25 |
26 | set_source_files_properties("crater.png"
27 | PROPERTIES QT_RESOURCE_ALIAS "map"
28 | )
29 |
30 | qt_internal_add_resource(tst_qmlgradient "qmlgradient"
31 | PREFIX
32 | "/"
33 | FILES
34 | ${qmlgradient_resource_files}
35 | )
36 |
--------------------------------------------------------------------------------
/tests/manual/qmlperf/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlperf LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlperf
14 | GUI
15 | SOURCES
16 | datagenerator.cpp datagenerator.h
17 | main.cpp
18 | )
19 |
20 | target_link_libraries(tst_qmlperf PUBLIC
21 | Qt::Gui
22 | Qt::Graphs
23 | )
24 |
25 | set(qmlperf_resource_files
26 | "qml/qmlperf/main.qml"
27 | "qml/qmlperf/Tests.qml"
28 | "qml/qmlperf/AutoTest.qml"
29 | )
30 |
31 | qt_internal_add_resource(tst_qmlperf "qmlperf"
32 | PREFIX
33 | "/"
34 | FILES
35 | ${qmlperf_resource_files}
36 | )
37 |
--------------------------------------------------------------------------------
/tests/manual/qmlspline/splinegen.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 | #ifndef SPLINEGEN_H
4 | #define SPLINEGEN_H
5 |
6 | #include
7 |
8 | enum class SplineType {
9 | Circle,
10 | Helix,
11 | Stitch,
12 | };
13 | class SplineGen : public QObject
14 | {
15 | Q_OBJECT
16 | Q_ENUM(SplineType)
17 | public:
18 | SplineGen(QObject *parent = 0);
19 | ~SplineGen() override;
20 |
21 | public Q_SLOTS:
22 | void generateSpline(QScatter3DSeries *series, SplineType type, int points);
23 | void tickSpline(QScatter3DSeries *series);
24 |
25 | private:
26 | void genCircle(int points);
27 | void genHelix(int points);
28 | void genStitch(int points);
29 | int m_cacheCount = 60;
30 |
31 | QScatter3DSeries *m_series = nullptr;
32 | QList m_splineCache;
33 | };
34 |
35 | #endif // SPLINEGEN_H
36 |
--------------------------------------------------------------------------------
/tests/manual/qmlsubpieslices/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlsubpieslices LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlsubpieslices
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmlsubpieslices PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmlsubpieslices_resource_files
28 | "qml/qmlsubpieslices/main.qml"
29 | )
30 |
31 | qt6_add_resources(tst_qmlsubpieslices "qmlsubpieslices"
32 | PREFIX
33 | "/"
34 | FILES
35 | ${qmlsubpieslices_resource_files}
36 | )
37 |
--------------------------------------------------------------------------------
/tests/manual/qmlgradientareas/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlgradientareas LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlgradientareas
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmlgradientareas PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmlgradientareas_resource_files
28 | "qml/qmlgradientareas/main.qml"
29 | )
30 |
31 | qt6_add_resources(tst_qmlgradientareas "qmlgradientareas"
32 | PREFIX
33 | "/"
34 | FILES
35 | ${qmlgradientareas_resource_files}
36 | )
37 |
--------------------------------------------------------------------------------
/src/graphs3d/qml/resources/VolumeSliceMaterial.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick3D
5 | import QtQuick
6 |
7 | CustomMaterial {
8 | property vector3d minBounds
9 | property vector3d maxBounds
10 | property TextureInput textureSampler: TextureInput {}
11 | property TextureInput colorSampler: TextureInput {}
12 | property vector3d volumeSliceIndices;
13 | property int color8Bit
14 | property vector3d textureDimensions
15 | property int sampleCount
16 | property real alphaMultiplier
17 | property int preserveOpacity
18 | property bool useOrtho
19 |
20 | shadingMode: CustomMaterial.Unshaded
21 | sourceBlend: CustomMaterial.SrcAlpha
22 | destinationBlend: CustomMaterial.OneMinusSrcAlpha
23 | vertexShader: "qrc:/shaders/texture3dvert"
24 | fragmentShader: "qrc:/shaders/texture3dslicefrag"
25 | }
26 |
--------------------------------------------------------------------------------
/src/graphs3d/widget/q3dscatterwidgetitem_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | //
5 | // W A R N I N G
6 | // -------------
7 | //
8 | // This file is not part of the Qt API. It exists purely as an
9 | // implementation detail. This header file may change from version to
10 | // version without notice, or even be removed.
11 | //
12 | // We mean it.
13 | //
14 |
15 | #ifndef Q3DSCATTERWIDGETITEM_P_H
16 | #define Q3DSCATTERWIDGETITEM_P_H
17 |
18 | #include
19 | #include
20 |
21 | QT_BEGIN_NAMESPACE
22 |
23 | class Q_GRAPHSWIDGETS_EXPORT Q3DScatterWidgetItemPrivate : public Q3DGraphsWidgetItemPrivate
24 | {
25 | Q_DECLARE_PUBLIC(Q3DScatterWidgetItem)
26 | public:
27 | Q3DScatterWidgetItemPrivate() = default;
28 | };
29 |
30 | QT_END_NAMESPACE
31 |
32 | #endif // Q3DSCATTERWIDGETITEM_P_H
33 |
--------------------------------------------------------------------------------
/src/graphs3d/widget/q3dsurfacewidgetitem_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | //
5 | // W A R N I N G
6 | // -------------
7 | //
8 | // This file is not part of the Qt API. It exists purely as an
9 | // implementation detail. This header file may change from version to
10 | // version without notice, or even be removed.
11 | //
12 | // We mean it.
13 | //
14 |
15 | #ifndef Q3DSURFACEWIDGETITEM_P_H
16 | #define Q3DSURFACEWIDGETITEM_P_H
17 |
18 | #include
19 | #include
20 |
21 | QT_BEGIN_NAMESPACE
22 |
23 | class Q_GRAPHSWIDGETS_EXPORT Q3DSurfaceWidgetItemPrivate : public Q3DGraphsWidgetItemPrivate
24 | {
25 | Q_DECLARE_PUBLIC(Q3DSurfaceWidgetItem)
26 |
27 | public:
28 | Q3DSurfaceWidgetItemPrivate() = default;
29 | };
30 |
31 | QT_END_NAMESPACE
32 |
33 | #endif // Q3DSURFACEWIDGETITEM_P_H
34 |
--------------------------------------------------------------------------------
/tests/manual/custominput/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_custominput LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_custominput
14 | GUI
15 | SOURCES
16 | main.cpp
17 | scatterdatamodifier.cpp scatterdatamodifier.h
18 | )
19 |
20 | target_link_libraries(tst_custominput PUBLIC
21 | Qt::Core
22 | Qt::Gui
23 | Qt::Widgets
24 | Qt::Graphs
25 | Qt::GraphsWidgets
26 | )
27 |
28 | set(custominput_resource_files
29 | "data/data.txt"
30 | )
31 |
32 | qt6_add_resources(tst_custominput "custominput"
33 | PREFIX
34 | "/"
35 | FILES
36 | ${custominput_resource_files}
37 | )
38 |
--------------------------------------------------------------------------------
/tests/manual/qmllegend/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmllegend LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmllegend
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmllegend PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmllegend_resource_files
28 | "qml/qmllegend/Data.qml"
29 | "qml/qmllegend/LegendItem.qml"
30 | "qml/qmllegend/main.qml"
31 | )
32 |
33 | qt6_add_resources(tst_qmllegend "qmllegend"
34 | PREFIX
35 | "/"
36 | FILES
37 | ${qmllegend_resource_files}
38 | )
39 |
--------------------------------------------------------------------------------
/tests/manual/qmltestbed/qml/qmltestbed/CppBarSeries.qml:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | import QtQuick
5 | import QtGraphs
6 | import TestbedExample
7 |
8 | Rectangle {
9 | anchors.fill: parent
10 | color: "#404040"
11 |
12 | GraphsView {
13 | id: chartView
14 | anchors.fill: parent
15 | anchors.margins: 20 * px
16 | anchors.topMargin: 80 * px
17 | axisX: BarCategoryAxis {
18 | categories: ["2023", "2024"]
19 | }
20 | axisY: ValueAxis {
21 | max: 30
22 | }
23 | theme: GraphsTheme {
24 | id: myTheme
25 | colorScheme: GraphsTheme.ColorScheme.Dark
26 | theme: GraphsTheme.Theme.QtGreen
27 | axisXLabelFont.pixelSize: 20
28 | }
29 | CustomBarSeries {
30 | id: barSeries
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/tests/manual/qmlnegativebarsets/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlnegativebarsets LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlnegativebarsets
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmlnegativebarsets PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmlnegativebarsets_resource_files
28 | "qml/qmlnegativebarsets/main.qml"
29 | )
30 |
31 | qt6_add_resources(tst_qmlnegativebarsets "qmlnegativebarsets"
32 | PREFIX
33 | "/"
34 | FILES
35 | ${qmlnegativebarsets_resource_files}
36 | )
37 |
--------------------------------------------------------------------------------
/tests/baseline/graphs/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2024 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | # Collect test data
5 | list(APPEND test_data "../data")
6 | set(BASELINE_DIR "../../../../qtbase/tests/baseline/shared")
7 |
8 | qt_internal_add_test(tst_baseline_graphs
9 | OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." # special case
10 | SOURCES
11 | ${BASELINE_DIR}/baselineprotocol.cpp
12 | ${BASELINE_DIR}/baselineprotocol.h
13 | ${BASELINE_DIR}/lookup3.cpp
14 | ${BASELINE_DIR}/qbaselinetest.cpp
15 | ${BASELINE_DIR}/qbaselinetest.h
16 | tst_baseline_graphs.cpp
17 | DEFINES
18 | QMAKESPEC=""
19 | INCLUDE_DIRECTORIES
20 | ${BASELINE_DIR}
21 | LIBRARIES
22 | Qt::Gui
23 | Qt::Network
24 | TESTDATA ${test_data}
25 | )
26 |
27 | add_dependencies(tst_baseline_graphs Qt6::Quick3D)
28 | add_dependencies(tst_baseline_graphs qgraphs_qmlscenegrabber)
29 |
--------------------------------------------------------------------------------
/tests/manual/qmlcustominput/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlcustominput LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlcustominput
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmlcustominput PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmlcustominput_resource_files
28 | "qml/qmlcustominput/Data.qml"
29 | "qml/qmlcustominput/main.qml"
30 | )
31 |
32 | qt6_add_resources(tst_qmlcustominput "qmlcustominput"
33 | PREFIX
34 | "/"
35 | FILES
36 | ${qmlcustominput_resource_files}
37 | )
38 |
--------------------------------------------------------------------------------
/src/graphs3d/widget/q3dbarswidgetitem_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2024 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | //
5 | // W A R N I N G
6 | // -------------
7 | //
8 | // This file is not part of the Qt API. It exists purely as an
9 | // implementation detail. This header file may change from version to
10 | // version without notice, or even be removed.
11 | //
12 | // We mean it.
13 | //
14 | #ifndef Q3DBARSWIDGETITEM_P_H
15 | #define Q3DBARSWIDGETITEM_P_H
16 | #include
17 | #include
18 |
19 | QT_BEGIN_NAMESPACE
20 |
21 | class Q_GRAPHSWIDGETS_EXPORT Q3DBarsWidgetItemPrivate : public Q3DGraphsWidgetItemPrivate
22 | {
23 | Q_DECLARE_PUBLIC(Q3DBarsWidgetItem)
24 | Q_DISABLE_COPY_MOVE(Q3DBarsWidgetItemPrivate)
25 |
26 | public:
27 | Q3DBarsWidgetItemPrivate() = default;
28 | };
29 |
30 | QT_END_NAMESPACE
31 |
32 | #endif // Q3DBARSWIDGETITEM_P_H
33 |
--------------------------------------------------------------------------------
/tests/manual/qmlmultiplebarseries/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmlmultiplebarseries LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmlmultiplebarseries
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmlmultiplebarseries PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmlmultiplebarseries_resource_files
28 | "qml/qmlmultiplebarseries/main.qml"
29 | )
30 |
31 | qt6_add_resources(tst_qmlmultiplebarseries "qmlmultiplebarseries"
32 | PREFIX
33 | "/"
34 | FILES
35 | ${qmlmultiplebarseries_resource_files}
36 | )
37 |
--------------------------------------------------------------------------------
/examples/graphs/graphprinting/qml/graphprinting/box_left_fill.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/tests/manual/qmltheme/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2023 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | project(tst_qmltheme LANGUAGES C CXX)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qmltheme
14 | GUI
15 | SOURCES
16 | main.cpp
17 | )
18 |
19 | target_link_libraries(tst_qmltheme PUBLIC
20 | Qt::Core
21 | Qt::Gui
22 | Qt::Qml
23 | Qt::Quick
24 | Qt::Graphs
25 | )
26 |
27 | set(qmltheme_resource_files
28 | "qml/qmltheme/main.qml"
29 | "qml/qmltheme/GraphModifiers.qml"
30 | "qml/qmltheme/BackgroundModifiers.qml"
31 | "layer_1.png"
32 | )
33 |
34 | qt6_add_resources(tst_qmltheme "qmltheme"
35 | PREFIX
36 | "/"
37 | FILES
38 | ${qmltheme_resource_files}
39 | )
40 |
--------------------------------------------------------------------------------
/src/graphs3d/utils/qgraphs3dlogging.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2025 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | #include "qgraphs3dlogging_p.h"
5 |
6 |
7 | QT_BEGIN_NAMESPACE
8 |
9 | Q_LOGGING_CATEGORY(lcGraphs3D, "qt.graphs3d.general")
10 | Q_LOGGING_CATEGORY(lcSeries3D, "qt.graphs3d.series")
11 | Q_LOGGING_CATEGORY(lcProperties3D, "qt.graphs3d.properties")
12 | Q_LOGGING_CATEGORY(lcEvents3D, "qt.graphs3d.events")
13 | Q_LOGGING_CATEGORY(lcInput3D, "qt.graphs3d.inputEvents")
14 | Q_LOGGING_CATEGORY(lcCritical3D, "qt.graphs3d.critical")
15 | Q_LOGGING_CATEGORY(lcAxis3D, "qt.graphs3d.axis.general")
16 | Q_LOGGING_CATEGORY(lcAProperties3D, "qt.graphs3d.axis.properties")
17 | Q_LOGGING_CATEGORY(lcGraphsScene3D, "qt.graphs3d.scene")
18 | Q_LOGGING_CATEGORY(lcGraphsBars3D, "qt.graphs3d.bars")
19 | Q_LOGGING_CATEGORY(lcGraphsScatter3D, "qt.graphs3d.scatter")
20 | Q_LOGGING_CATEGORY(lcGraphsSurface3D, "qt.graphs3d.surface")
21 |
22 | QT_END_NAMESPACE
23 |
24 |
--------------------------------------------------------------------------------
/src/graphs2d/xychart/qxypoint_p.h:
--------------------------------------------------------------------------------
1 | // Copyright (C) 2023 The Qt Company Ltd.
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3 |
4 | // W A R N I N G
5 | // -------------
6 | //
7 | // This file is not part of the Qt Graphs API. It exists purely as an
8 | // implementation detail. This header file may change from version to
9 | // version without notice, or even be removed.
10 | //
11 | // We mean it.
12 |
13 | #ifndef DECLARATIVE_XY_POINT_H
14 | #define DECLARATIVE_XY_POINT_H
15 |
16 | #include
17 | #include
18 | #include
19 |
20 | QT_BEGIN_NAMESPACE
21 |
22 | class QXYPoint : public QObject, public QPointF
23 | {
24 | Q_OBJECT
25 | Q_PROPERTY(qreal x READ x WRITE setX FINAL)
26 | Q_PROPERTY(qreal y READ y WRITE setY FINAL)
27 | QML_NAMED_ELEMENT(XYPoint)
28 |
29 | public:
30 | explicit QXYPoint(QObject *parent = 0);
31 | };
32 |
33 | QT_END_NAMESPACE
34 |
35 | #endif // DECLARATIVE_XY_POINT_H
36 |
--------------------------------------------------------------------------------
/tests/manual/qml2dperformance/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2025 The Qt Company Ltd.
2 | # SPDX-License-Identifier: BSD-3-Clause
3 |
4 | cmake_minimum_required(VERSION 3.16)
5 |
6 | if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
7 | projecf(tst_qml2dperformance LANGUAGES C CXX ASM)
8 | find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
9 | endif()
10 |
11 | set(CMAKE_INCLUDE_CURRENT_DIR ON)
12 |
13 | qt_internal_add_manual_test(tst_qml2dperformance
14 | GUI
15 | SOURCES
16 | main.cpp
17 | randomModel.h randomModel.cpp
18 | randomGenerator.h randomGenerator.cpp
19 | )
20 |
21 | target_link_libraries(tst_qml2dperformance PUBLIC
22 | Qt::Gui
23 | Qt::Graphs
24 | )
25 |
26 | set(qml2dperformance_resource_files
27 | "qml/qml2dperformance/main.qml"
28 | )
29 |
30 | qt_internal_add_resource(tst_qml2dperformance "qml2dperformance"
31 | PREFIX
32 | "/"
33 | FILES
34 | ${qml2dperformance_resource_files}
35 | )
36 |
--------------------------------------------------------------------------------