summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization
Commit message (Collapse)AuthorAgeFilesLines
* Fix: change signals to take values by const refSami Varanka2021-09-062-2/+2
| | | | | | | | | | | Changed signals in declaratives to take their arguments as const ref when suitable. Change-Id: I23ad15ba5bec39d9588425f71a24820199b33e8b Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 94005117116bfd668f27fd64cb31949fee3f42b1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix invisible text on macOS in qmlsurfacelayers exampleTomi Korpipaa2021-08-031-0/+1
| | | | | | | | | Task-number: QTBUG-94331 Change-Id: Ie75f8abe7860d1f26fba51ed62491e73554a29bd Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit e0713ad6f89eac8a4e7cbb5adfaf4daf6a91ca3c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix direct rendering doesn't show anythingSami Varanka2021-06-049-10/+12
| | | | | | | | | | | | | | | | | | | | | | | Rendering a graph directly to background didn't work in Qt 6 since it uses RHI and there is no way to not clear the color buffer before rendering. The graph uses direct OpenGL calls to render directly to background. Enabled direct rendering to qml3doscilloscope example. In addition, RenderDirectToBackground_NoClear got deprecated. When rendering directly to background, using non-transparent qml item as a background will hide the graph. This was already mentioned in the documentation but not clearly enough. Updated documentation for AbstractGraph3D. Fixes: QTBUG-90665 Change-Id: I53081bac382ab89573359886e4f5c4b41be8e86d Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit ad85513d4b38bdedac27a095bd3a988f1eda23a2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix warnings in datavisualization examplesSami Varanka2021-05-255-14/+12
| | | | | | | | | | | | | | | Injection of parameters into signal handlers is deprecated. So those signal handlers using parameters needed to be changed to use formal parameters instead. Uncommented the theme in qmlperf manual test. Added missing space to qmlgradient manual test. Fixes: QTBUG-92995 Change-Id: I5999df841c077be63a9f01d71188c07574b2669e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 3184afc8c9cea87fdfc71ed003f29cb29c23ed40) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Set style hint for fontTomi Korpipaa2021-05-241-1/+3
| | | | | | | | | | | | | The font matching algorithm in Linux finds an odd font using the default style hint. Change style hint to get a sensible font instead. Fixes: QTBUG-93676 Change-Id: I35ad0c406c3aaf77dde1606e1b67baffc8a12f91 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> (cherry picked from commit 40ffa9f609f36e2615c6d05c6ac58cc8d65297c9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add find_package to allow standalone example buildsTomi Korpipaa2021-04-2922-0/+22
| | | | | | | | Fixes: QTBUG-93263 Change-Id: Ia80b6dc30c0797d2d17a349ffaad01ee5d057444 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> (cherry picked from commit 32c7d9b71e2857bf0859b28860fe45ce5c80b47c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix documentation issuesTopi Reinio2021-04-271-0/+2
| | | | | | | | | | | * Restore removed example snippet tags * Fix issues in the .qdocconf file Task-number: QTBUG-91875 Change-Id: Iff7068204b5713fbf9f9f568834b55c5c282abba Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 3eba29e47e6ef55960e670095444b977defce345) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix qml3doscilloscope example crashSami Varanka2021-04-222-8/+4
| | | | | | | | | | | | | | | Changed buttonlayout's minimumheight property to use flatshadingtoggle's implicitHeight instead of height. Created a ticket to quick layouts (QTBUG-92896). Also removed direct rendering (QTBUG-90665) Fixes: QTBUG-92830 Change-Id: I088ccfad19bf44a5aa7b837fb8e2f5fd3ee4752a Reviewed-by: Tuomo Pelkonen <tuomo.pelkonen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 7953e45cb47fd264d446dcbe7c5186cef8987e5b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Rename qmloscilloscopeTomi Korpipaa2021-03-2611-30/+30
| | | | | | | | | | | | | There was a naming conflict with QtCharts qmloscilloscope example, so this is now renamed as qml3doscilloscope Fixes: QTBUG-92167 Change-Id: I657d9737c39b0680aabc6b7c00ebe04351643502 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> (cherry picked from commit 695276e2c4725d67960aa212043fe1b86c47fe95) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix layout and signal handling in QML appsTuomo Pelkonen2021-02-261-2/+2
| | | | | | | | Task-number: QTBUG-90664 Change-Id: I181a3b3b2a1801665a0d876a837054aa10425c0d Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 9cb0e5714182df7f7d6b4fb291ffb83b614750d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix quit buttons in qml examplesTuomo Pelkonen2021-02-267-7/+7
| | | | | | | | Task-number: QTBUG-90664 Change-Id: I4b60dafeb0599e988b422a4764bac2e91b22d2ea Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 8461cda03dcbaf70d182656e245f1e636b580e83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix macOS build that has -Wunused-function as errorTomi Korpipaa2021-02-112-2/+2
| | | | | | | | | | | Clang may interpret static inline function as unused, although it should not. Pragma it out for clang. Fixes: QTBUG-91053 Change-Id: I8fd8bec5236752189deff8a2f6ceb62e572dca30 Reviewed-by: Antti Määttä <antti.maatta@qt.io> (cherry picked from commit 21ab254164ab0891e12dbd037fc4e163ff9f6e9d) Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix build for Qt 6.1Tuomo Pelkonen2021-02-112-2/+2
| | | | | | | | | Task-number: QTBUG-89299 Task-number: QTBUG-90926 Change-Id: I49822338f94e2bdcb0ae5b29d2211127e40d58f9 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit d2c6249bb9292deec97b5a026be5efdb7a83bba7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove custom namespaceTomi Korpipaa2021-01-2840-80/+0
| | | | | | Fixes: QTBUG-90400 Change-Id: Ia2f1974a21112bad97724717d073d367c4413a7f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Add CMake buildTuomo Pelkonen2021-01-2725-1/+1236
| | | | | | | Task-number: QTBUG-89299 Change-Id: I5becbf39605e566c3d32cb5e210d974df9de27da Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix compilation issues for macOS and Android on Qt 6.0Tuomo Pelkonen2021-01-272-1/+3
| | | | | | Task-number: QTBUG-89297 Change-Id: I57acf345b6fc64a93d08d41016c755cae4edd6db Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Force OpenGL backend for RHITuomo Pelkonen2021-01-2736-13/+36
| | | | | | | | Set QSG_RHI_BACKEND environment variable to "opengl" to force RHI to use OpenGL backend. Change-Id: Ie1fa0ffe466f97b1bbcc5281c49bbdf6e6d053c0 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmlbars example for Qt 6.0Tuomo Pelkonen2021-01-273-71/+114
| | | | | | | | Remove API versions from imports, using standard Button and adapted to new TableView Task-number: QTBUG-89298 Change-Id: Ic41c53a6c6d2c0b0542464e78395f5347bdb4e74 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix most of the QML example applicationsTuomo Pelkonen2021-01-2739-771/+104
| | | | | | | | | Most of the QML examples work now as supposed to. Qmlbars still needs fixing and is not included in this patch. Task-number: QTBUG-89298 Change-Id: Ic8bc6511cdb00dd3db0a181b7a31b3bbc39f0556 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Add ; to Q_UNUSEDLars Schmertmann2020-06-265-8/+8
| | | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: I66f620431011d02cb1542e8ad613dadd28fdd843 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Use QList instead of QVectorJarek Kobus2020-06-256-37/+34
| | | | | | | Task-number: QTBUG-84469 Change-Id: I4dc064b70adb054ca4add2dd662e7227255ff970 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge "Merge remote-tracking branch 'origin/5.15' into dev"Qt Forward Merge Bot2020-03-263-3/+3
|\
| * Use Qt::SplitBehavior in preference to QString::SplitBehaviorv5.15.0-beta4v5.15.0-beta3v5.15.0-beta2Edward Welbourne2020-03-022-2/+2
| | | | | | | | | | | | | | | | The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. Change-Id: Iee6bd8e83592c26b63259959e58d52131921438f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * Fix deprecation warningsFriedemann Kleint2020-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | colorgradient.cpp:80:61: warning: ‘QQmlListProperty<T>::QQmlListProperty(QObject*, QList<T*>&) [with T = QtDataVisualization::ColorGradientStop]’ is deprecated: Use constructor taking QList pointer, and gain improved performance [-Wdeprecated-declarations] declarativerendernode.cpp:116:71: warning: ‘QSGTexture* QQuickWindow::createTextureFromId(uint, const QSize&, QQuickWindow::CreateTextureOptions) const’ is deprecated: Use createTextureFromNativeObject() instead [-Wdeprecated-declarations] customformatter.cpp:167:34: warning: ‘QDateTime::QDateTime(const QDate&)’ is deprecated: Use QDate::startOfDay() [-Wdeprecated-declarations] Change-Id: Iaf3b8814cd70a704b87b4970ad83ed5a7d4dc0f1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | Update dependenciesFriedemann Kleint2020-03-261-0/+1
|/ | | | | | | Add missing Q_MOC_INCLUDE and adapt to OpenGL split. Change-Id: I6150876a62ca55ad63c09a128226c2bac428b821 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Replace the deprecated QWheelEvent::delta() -> QWheelEvent::angleDelta()Sona Kurazyan2019-08-261-1/+1
| | | | | | | | | | Replaced the deprecated QWheelEvent::delta() with the vertical component of angle delta, assuming that it's acceptable to have a single-dimension mouse wheel in the example code. Task-number: QTBUG-76491 Change-Id: Ie05bb5934ce43976cd3cf009343d7b50ea327f14 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: Fix \code command usageTopi Reinio2018-10-251-2/+6
| | | | | | | | | Since Qt 5.12, \code command accepts parameters, and in-line usage no longer works (and was never documented to work). Task-number: QTBUG-70980 Change-Id: I010ba21c2a20f70bfdacd7bb0c1aea3836c8efca Reviewed-by: Martin Smith <martin.smith@qt.io>
* Doc: Add missing dots (qtdatavis3d)Paul Wicking2018-06-192-2/+2
| | | | | | Task-number: QTBUG-68933 Change-Id: I4947e5906049cadcd2aefd7dfb7aee25fea7a778 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Use FDL license for all .qdoc filesKai Koehne2018-05-3023-253/+207
| | | | | Change-Id: I732a95d5adbd7579b05e8cb2b1afd586d5b5bc58 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* itemmodel example: Remove unused member variablesFriedemann Kleint2018-05-091-6/+0
| | | | | | | | | | | | Fix Clang warnings main.cpp(74,13): warning: private field 'm_styleTimer' is not used [-Wunused-private-field] main.cpp(75,13): warning: private field 'm_presetTimer' is not used [-Wunused-private-field] main.cpp(76,13): warning: private field 'm_themeTimer' is not used [-Wunused-private-field] Task-number: QTBUG-63512 Change-Id: I618b0b6e6157b8a82af7e81b178f5156cf9c1bca Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* qtlite: Skip building examples when configured with no-feature-itemviews5.10Rainer Keller2018-01-265-0/+7
| | | | | | Task-number: QTBUG-53141 Change-Id: I2e9fa0a5b72d79acc22c779e68a3dbe6a320a32a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Remove unneeded includeRainer Keller2018-01-191-1/+0
| | | | | Change-Id: I508fc0322f473a476f8943d4171f2242697519fa Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2018-01-181-2/+2
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I4e39ad733fec72e2233cd16fc50c96ca96280782
| * If not m_resetArray then create itMika Salmela2017-12-041-2/+2
| | | | | | | | | | | | | | | | Fix m_resetArray so that if it not yet created, then create it. Currently it is created every time. Change-Id: I850bd9d2f719cd76bfd3292a439f9585a4e99fc3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Update to new QRandomGenerator APIThiago Macieira2017-11-034-14/+14
| | | | | | | | | | Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* | Use QRandomGenerator instead of q?randThiago Macieira2017-07-044-8/+19
| | | | | | | | | | Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Use qRadiansToDegrees() and qDegreesToRadians() more widelyEdward Welbourne2017-06-141-1/+1
|/ | | | | | | | | These document what the arithmetic is actually doing; and save us an ad-hoc use of an approximate value for pi while we're about it. Task-number: QTBUG-58083 Change-Id: I82c5502af724b33ec598c5a9da76537f93a95eac Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-0819-73/+73
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/datavisualization/bars/doc/src/bars.qdoc examples/datavisualization/custominput/doc/src/custominput.qdoc examples/datavisualization/customitems/doc/src/customitems.qdoc examples/datavisualization/draggableaxes/doc/src/draggableaxes.qdoc examples/datavisualization/itemmodel/doc/src/itemmodel.qdoc examples/datavisualization/qmlaxisdrag/doc/src/qmlaxisdrag.qdoc examples/datavisualization/qmlaxisformatter/doc/src/qmlaxisformatter.qdoc examples/datavisualization/qmlcustominput/doc/src/qmlcustominput.qdoc examples/datavisualization/qmloscilloscope/doc/src/qmloscilloscope.qdoc examples/datavisualization/qmlscatter/doc/src/qmlscatter.qdoc examples/datavisualization/qmlspectrogram/doc/src/qmlspectrogram.qdoc examples/datavisualization/qmlsurface/doc/src/qmlsurface.qdoc examples/datavisualization/qmlsurfacelayers/doc/src/qmlsurfacelayers.qdoc examples/datavisualization/rotations/doc/src/rotations.qdoc examples/datavisualization/scatter/doc/src/scatter.qdoc examples/datavisualization/surface/doc/src/surface.qdoc examples/datavisualization/texturesurface/doc/src/texturesurface.qdoc examples/datavisualization/volumetric/doc/src/volumetric.qdoc src/datavisualization/doc/src/qtdatavisualization.qdoc Change-Id: Ic15e77b1fee0708a235bf21815f72b854981537a
| * Doc: Use capitalization in section titlesTopi Reinio2016-11-0219-73/+73
| | | | | | | | | | Change-Id: I3ea9dde5f98813716d754d292af1f005d33ba98e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Doc: Add section on running examples to example docsLeena Miettinen2016-11-0223-1/+47
|/ | | | | | | | | | - Include examples-run.qdocinc from qtbase/doc/global. - Add section title to Audiolevels example docs. - Remove unnecessary leading paragraph from Custom Proxy example docs. - Remove information about running examples from Getting Started topic. Change-Id: I33e8189fa20bad38e52f424b0143b4031ad7872f Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-beta1Liang Qi2016-04-081-0/+3
|\ | | | | | | | | | | | | Conflicts: src/datavisualization/utils/qutils.h Change-Id: Ic882590b5386697fb4af068e435704849ed5405c
| * fix namespaced buildOswald Buddenhagen2016-04-061-0/+3
| | | | | | | | | | Change-Id: I76b85f4e2653f20a368b4b413b29c733a6a3f300 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* | Made controls easier to use on touch devicesTomi Korpipää2016-01-152-9/+64
| | | | | | | | | | | | Change-Id: Ife9b72e390a9d9c0f012d6b9ac4a421fad9f0315 Task-number: QTRD-3782 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* | Copyright file update to GPLMiikka Heikkinen2016-01-12121-1089/+2057
| | | | | | | | | | Change-Id: Ib264fe1f2cd1589e2ba1ef2dc7d8f3951e125708 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
* | Add a method for checking if context was successfully createdMiikka Heikkinen2015-12-3013-1/+92
|/ | | | | | | | | | Now it is possible to check after graph construction if the graph is actually usable in environments where the OpenGL support might not be sufficient. Task-number: QTRD-3748 Change-Id: Ia68b4e51386859f6d0c7b09cb44e50a74730ca55 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix issues with COIN buildsMiikka Heikkinen2015-10-221-4/+3
| | | | | | | | | | | | -Fix miscellaneous compile errors -Move manual tests to manual folder and enable export of autotests -Added widgets requirement -Fixed autotests -Fixed renderer and controller synchronization in QML case -Treat fallback Mesa as ES2 similar to setting AA_UseSoftwareOpenGL Change-Id: If6619733725d079e339bef16262e5ea1450ab20f Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
* Update license headersMiikka Heikkinen2015-10-20121-1331/+1694
| | | | | Change-Id: I0581aefcf9dabc64b05eb8c97b5b92da1fb26299 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix building against 5.6Miikka Heikkinen2015-06-1713-17/+17
| | | | | | | | Apparently Qt modules are now required to use Q_SIGNALS and Q_SLOTS macros instead of 'signals' and 'slots' in headers. Change-Id: I4140b1fff4386d74bb371176919234366965e887 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Copyright header changesMika Salmela2015-04-14121-363/+363
| | | | | | | Copyright header changes for 5.5. Change-Id: I0361cfe1ebdb28955cb927700f14cf7b72694421 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* qmlscatter example: Give a default size to the view itemCaroline Chao2015-03-111-0/+2
| | | | | | | | | On OS X the content item of the view must have a valid width or height. Change-Id: I6903671a9bd39511a4d0d649819b68930597260d Task-number: QTRD-3469 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>