summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Add example of reading CBOR data from pythonwip/serializationBrett Stottlemyer2021-07-1514-0/+1346
| | | | | | | | | | | | This is currently a test harness that will expand as the CBOR functionality is prototyped. A start at changes to repc to autogenerate python code for Replica types is also included. Change-Id: I97c3ad4c62c7d747c1918f88be41fb7643bbb46d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* CMake: Update to latest qml CMake APIAlexandru Croitor2021-06-051-1/+0
| | | | | | Task-number: QTBUG-91621 Change-Id: I35ef90f6df40fac3808fb19054c66d73b18137c8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Make qt6_add_repc_{replica, source} pluralSona Kurazyan2021-05-318-8/+8
| | | | | | | | | Since these functions can take multiple *.rep files, it makes sense to make them plural. Change-Id: I99894e9ee1f6f0035eb8c3e5cdd1292316324577 Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Use fixed qt_add_resource BASE argumentJoerg Bornemann2021-05-204-91/+28
| | | | | | | | Task-number: QTBUG-86726 Change-Id: I60decd981520475caccf112967afb82928612995 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Rename the target name for the example's qml pluginSona Kurazyan2021-05-063-9/+9
| | | | | | | | | | qtdeclarative has a target named 'qmlqtimeexampleplugin', it clashes with the same name in qtremoteobjects when building all modules in qt5.git. Renamed qmlqtimeexampleplugin -> qmlqrotimeexampleplugin. Fixes: QTBUG-93491 Change-Id: I5149de4d6a719eed16baf2f97ae748e85b39b066 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add some introductory documentation to a few more examplesMårten Nordheim2021-03-243-0/+108
| | | | | | | | | | | This way they will show up in the examples section for Remote Objects. Didn't document them as much as the previous example as they're not doing the Remote Objects parts very differently, but they are covering niches which are very important. Change-Id: I9bbd26a3fb8b2cf8a409464d9807daafc2558ac2 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Document the modelviewclient and server examplesMårten Nordheim2021-03-244-18/+168
| | | | | | | | | | | | They're simple, which makes them easy to follow. Adjusted the qtremoteobjects.qdocconf file as it wasn't working with the examples on my Linux machine at least. Task-number: QTBUG-90848 Change-Id: Id674585835717be87344f3f694ab77128ecb5344 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Remove old instructions for generating tls certificatesMårten Nordheim2021-03-231-15/+0
| | | | | | | Amends b03bf04c19d4d9b81f92bd9a30ee7d26317a7315 Change-Id: Ib7fbd69cf8f426f341b4a14c7be4d632ab30e6c1 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
* Fix error in websocket exampleMårten Nordheim2021-03-231-1/+1
| | | | | | | | | std::min fails to deduce the correct type to use now that QByteArray::size returns qsizetype instead of always returning int. A cast is needed on 32-bit now though, so let's cast to 64-bit. Change-Id: Ib3acd06527f87ccd807d8bdba64e62809da5f858 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
* Migrate from old signal/slot connection syntax (part 2)Sona Kurazyan2021-02-262-10/+10
| | | | | | | | | Change the syntax also for the connections that involve types that are defined in the repc-generated files. Pick-to: 5.15 5.12 Change-Id: I222a59c8fae438c5f0026e66a75d0fa905e49ccf Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Migrate from old signal/slot connection syntaxSona Kurazyan2021-02-258-22/+24
| | | | | | | | | | Exception is made for the cases, when the signals/slots are not known at compile-time (i.e. involve dynamic replicas) or are defined in the repc-generated files. Pick-to: 5.15 5.12 Change-Id: Ice1fc78b59c713480531292a0401795df75523d7 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Regenerate certificates to match new macOS 10.15 restrictionsMårten Nordheim2021-02-2416-252/+254
| | | | | | | | | | | The server cert needs to have the 'domain' in the extensions, not just in the CommonName and it also needs to have the extended key usage 'server'. Pick-to: 5.15 Change-Id: If9dc40281bf7af2157baa2cb1e6831c3a82bc6f2 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Clean-up warningsSona Kurazyan2021-02-223-5/+5
| | | | | | | | | | | | | Fixed the following warnings: - empty expression statement has no effect; remove unnecessary ';' - use of old-style cast - zero as null pointer constant - other minor things Change-Id: Ia672f48d2aa87c59354fc93fd19862f1875e13db Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Use QList instead of QVectorJarek Kobus2021-02-162-2/+2
| | | | | | | | | Task-number: QTBUG-84469 Task-number: QTBUG-90907 Change-Id: Ifc6f05fb5e17e32ec04b383770080e812c854510 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Regenerate CMake projectsSona Kurazyan2021-02-1516-15/+79
| | | | | | Task-number: QTBUG-90686 Change-Id: I721eb88e638c83916884b7e7cf56dfa379baba86 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Pass QDate by valueEdward Welbourne2020-08-141-1/+1
| | | | | | | It's a trivially-copyable value type, just wrapping a qint64. Change-Id: I3cd2002b402eda479786e9367f834accd01fdabf Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Update via run_pro2cmake.pyBrett Stottlemyer2020-06-2916-24/+82
| | | | | | | ... and address special cases Change-Id: I2ceb88e9505c59fe48dd4612cfed82935eb2dfc4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Merge remote-tracking branch 'origin/wip/cmake' into devAlexandru Croitor2020-06-1622-0/+804
|\ | | | | | | | | | | | | Conflicts: dependencies.yaml Change-Id: I01be97466ce583c1852c00986d1e925dda80038c
| * Regenerate projectswip/cmakeAlexandru Croitor2019-11-155-5/+5
| | | | | | | | | | | | Change-Id: I08414933bad2e94f8f9a12ac7372570e838e31cd Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * Port QtRemoteObjects to CMakeJoerg Bornemann2019-11-1222-0/+804
| | | | | | | | | | | | | | Fixes: QTBUG-78175 Change-Id: I9e75992ac906778b9d04ccbe132445728ef65789 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | QAbstractSocket: fix deprecation warnings from the error signalMårten Nordheim2020-03-232-2/+2
| | | | | | | | | | | | | | Task-number: QTBUG-82605 Change-Id: Iec79cebddaf58ec352243b44eeb1d52e0ddacf67 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* | Merge remote-tracking branch 'origin/5.14' into 5.15v5.15.0-beta1v5.15.0-alpha1Qt Forward Merge Bot2020-02-051-2/+2
|\ \ | |/ |/| | | | | | | | | Conflicts: .qmake.conf Change-Id: I4b6e131fbe19b6f7b3dca10c179969c637d31da5
| * Specify the int parameter for the hour/minuteChanged() signalsAndy Shaw2020-01-301-2/+2
| | | | | | | | | | Change-Id: I4e289bb6d965d8467f0180ec1223f2cf7f25c586 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* | Remove empty qresource entry from clientapp.qrcJoerg Bornemann2019-10-091-1/+0
|/ | | | | | | This entry is pointless, and pro2cmake trips over it. Change-Id: I474e6d8f130405cfce34690184dc94d063d00fad Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* WebSockets: Add SSL SupportBogDan Vatra2019-06-1211-1/+196
| | | | | | | We should discourage people to use unencrypted connections. Change-Id: Ie8945d19ae47c48a0f80d39d0ce919aed42713a1 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Add WebSockets exampleBogDan Vatra2019-06-129-1/+489
| | | | | Change-Id: I5626b8a835c3b2d717e30b482678b95e20f26d38 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* examples: require widgets explicitlyLiang Qi2019-02-061-2/+6
| | | | | | Change-Id: I3f34288d29c3290f61817575053f4fdb0a536b9e Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* SSL Examples: Explicitly state SSL requirementFriedemann Kleint2018-12-102-0/+6
| | | | | | | | | Give a proper error message when trying to build the example locally. Fixes: QTBUG-72394 Change-Id: I7a4178aabf0960af3172cfc2d86c2672ad962142 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Only include the ssl example and test if the OpenSSL feature is availableAndy Shaw2018-12-071-2/+3
| | | | | Change-Id: I55cfc9bcf96b573a8d614d8fe11a9ad73615a525 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Quit gracefullyv5.12.0-rc1BogDan Vatra2018-11-141-1/+2
| | | | | | Task-number: QTBUG-71693 Change-Id: I78a48508e8a254ef1db77d7fb2956161bf3d817f Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Add SSL example & auto testBogDan Vatra2018-10-2919-1/+791
| | | | | Change-Id: I3342507fa2ea69f753f1f062c233211fad4791ff Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Fix a typo in the documentation code's commentsNicolas Ettlin2018-07-111-1/+1
| | | | | Change-Id: Ibbcf1326d01fe722c22b205641b9f20c4b405f00 Reviewed-by: hjk <hjk@qt.io>
* Fix errors reported by CoverityMichael Brasser2018-04-254-4/+4
| | | | | Change-Id: Ic1e01d4414dcfa06dec56e9008132762e6a7f37b Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Merge remote-tracking branch 'origin/5.10' into 5.11v5.11.0-alpha1Liang Qi2018-02-122-0/+2
|\ | | | | | | Change-Id: I56d14844fb4124ef72cb7be2f5825d1ec12adf72
| * qtlite: Skip building examples when configured with no-feature-itemviewsv5.10.15.10Rainer Keller2018-01-312-0/+2
| | | | | | | | | | | | Task-number: QTBUG-53141 Change-Id: I02d6bfe07c02a9d156b648158116f24552bf1a16 Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
* | Say hello to QRemoteObjectNode::heartbeatInterval propertyBogDan Vatra2017-12-081-0/+1
| | | | | | | | | | | | | | | | | | | | This property can be used to periodically check the connection between the replica and the source. If the connection is lost, the replica enters in the "Suspect" state and will attempt to reconnect. Task-number: QTBUG-64086 Change-Id: Icf67e173073c9d277575c8faf01a0a1ffab5bc07 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-2410-10/+110
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/remoteobjects/qremoteobjectabstractitemmodeladapter_p.h src/remoteobjects/qremoteobjectdynamicreplica.cpp src/remoteobjects/qremoteobjectnode_p.h src/remoteobjects/qremoteobjectregistry.cpp tests/auto/auto.pro tools/repc/repcodegenerator.cpp Done-with: BogDan Vatra <bogdan@kdab.com> Change-Id: I9d0230736b768eac44b06376aeaab1b0b09eb22a
| * Fix outdated BSD license headerv5.9.3Liang Qi2017-11-0810-10/+110
| | | | | | | | | | | | Task-number: QTBUG-64358 Change-Id: I4c1fe67cd48dddb57489f67d597e0f219f2d2ce2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Modernize: Use override where possibleKevin Funk2017-09-217-13/+13
|/ | | | | Change-Id: Id67366f3eaf251b1f2c8d9a91a41dec72117cc7c Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Correct QtRO license headers and added missing license filesv5.9.0-beta4Jani Heikkinen2017-05-0224-388/+796
| | | | | | | | | | | | | Unify licensing as it is in other submodules - Src is licensed under Commercial, LGPLv3, GPLv2 and GPLv3 licenses - Examples are licensed under Commercial and BSD licenses - Tools and tests are licensed under commercial and GPLv3 license with some exceptions Task-number: QTBUG-58921 Change-Id: I4494bf8b705568b243340c98316bedd706145db5 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Replace Q_NULLPTR -> nullptrKevin Funk2017-03-298-8/+8
| | | | | | | | Skip the moc/ directory intentionally, since it contains third-party code Change-Id: I97105e475c109231e001dc4525b3096a06601868 Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Adjust examples to follow Qt conventionsBrett Stottlemyer2017-03-2267-70/+48
| | | | | | | | | Adjust examples' file and directory naming to be consistent with Qt-wide conventions. Task-number: QTBUG-59229 Change-Id: I5c4eb66e91a12590600446a35b2656361561e2a3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Fixes for license checkBrett Stottlemyer2017-01-1434-672/+477
| | | | | | | | Change-Id: I3cf39180b08b80ea65c46e7b6a9e81f3aa79d1af Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Generate, send and check class signature for .rep generated classesBogDan Vatra2016-09-081-1/+1
| | | | | | | | | If the signature mismatch it will not complete the connection and will signal the error. Change-Id: Idd4a7a5290bb60d7428e16047a1b82db5e52b372 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Fix examples installations.Rafael Roquetto2016-06-2212-29/+24
| | | | | | Change-Id: I0fd4527ba145f3a8ae49374d160e3a9d9be8f3a9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Memory performanceBogDan Vatra2016-05-092-2/+4
| | | | | | | | Use a LRU Cache to keep the most m_cacheSize used items. Change-Id: I2c46153e4236b4ba354c0b45f0840b28da710366 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Rename dynamic acquire methodBrett Stottlemyer2016-04-292-2/+2
| | | | | | | | | | | Change from acquire(const QString &name) to acquireDynamic(...) to help with the upcoming qdoc updates, since qdoc couldn't tell the difference between the templated acquire() and the acquire for dynamic replicas. This is more consistent with acquireModel anyway. Change-Id: I3fba5747268992df40c787cee399f4761664b883 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Rename QAbstractItemFoo -> QAbstractItemModelFooKevin Funk2016-03-212-2/+2
| | | | | | | | Source-incompatible change, but worth it, IMO. Change-Id: I2e1c716dafaf3d8b031fc3459aa8b7f6fb8bc545 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* Add QMLModelViewClientBogDan Vatra2016-03-218-1/+201
| | | | | | | | | ModelViewClient is based on QTreeView which iterates all the items when scrolling or when we go at the end. Change-Id: I8404be2b74cfa7ddaeff54178124de8cd1fbc40f Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
* [minor] Fix setFilterRules stringBrett Stottlemyer2016-03-071-2/+2
| | | | | | Change-Id: Id2792c8efe43d211eaa6ba72713c1d0efa2679c2 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>