aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Refactor example projectsMiguel Costa2025-11-2625-21/+1186
| | | | | | | | | | | | * Create new .sln in the `examples` dir * Use package when building examples outside of the topmost .sln * Disable build of examples by default in the topmost .sln - Projects can still be manually built and debugged * Renamed `GeneratorTestApp` as `Primes` * Renamed `PackageTestApp` as `CityTemperatures` Change-Id: I333ba1941f3ccb021cb2681da09bcad8024ae186 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Remove graphviz dependencyMiguel Costa2025-11-142-10/+0
| | | | | Change-Id: I6790f92526c2042e8a921903034667f0420ba8c5 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Generate unique names for cast functionsMiguel Costa2025-11-132-2/+2
| | | | | Change-Id: I175385d20f7f37d3077faa021e29ea6db8d8bbf7 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update Tutorial example appMiguel Costa2025-11-111-4/+9
| | | | | | | Now using `ColumnLayout` instead of `Column`. Change-Id: Ib98d8564b222b032bd484b5d809fe393a63a6076 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add ColorPalette demoMiguel Costa2025-11-1117-53/+961
| | | | | Change-Id: I85006e535a28898166ad225105519422eb3582d9 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add colorpaletteclient QML and resource filesMiguel Costa2025-11-1123-0/+1189
| | | | | | | Copied from https://code.qt.io/cgit/qt/qtdoc.git/tree/examples/demos/colorpaletteclient Change-Id: I62b7c807eae9afa794ac56c4ae1ed6c76f249cb9 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Remove unused codeMiguel Costa2025-10-241-2/+2
| | | | | | | | | | The following types are no longer used: * IQModelIndex * IQVariant * QDotNetAbstractListModel Change-Id: Ibf871362382dab4cc9480701c996bb0445f0c1d1 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Load QML files in runtimeMiguel Costa2025-10-202-2/+2
| | | | | | | | QML files will be loaded in runtime from the file system instead of being compiled ahead-of-time. Change-Id: If6bcffa7bad3d9dc4c2d51f7f0629f725c536a04 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Implement QML property semanticsMiguel Costa2025-10-151-3/+2
| | | | | | | | | | | | | | QML will always call getter functions for object properties. This will result in the creation of duplicate "live" C++ wrappers for the same C#, one wrapper per reference to the property. To work around this, the result of reference-typed properties (i.e. anything not considered a built-in type) will be cached in the wrapper. Subsequent calls to the property getter will return the cached instance. The cache is updated in calls to the setter function (if any), and is cleared on notification of property change. Change-Id: I24dc08676c7c87093f0d8e77b775ec6dab9a8bfd Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Generate graphviz for example projectsMiguel Costa2025-10-152-2/+20
| | | | | Change-Id: Ib4d3368583c2128807d93bab9bf61ddf61e93803 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add Tutorial exampleMiguel Costa2025-10-134-0/+96
| | | | | Change-Id: I8f590fb5355f756b45b27fd53d1892b3c58fa3c4 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update UserView exampleMiguel Costa2025-10-1312-575/+272
| | | | | Change-Id: Id974ea9979d9dda99b78a5e70e08d6985088ce07 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add basic types to IQVariantMiguel Costa2025-09-295-18/+24
| | | | | Change-Id: I32b02ac2d4aa5aa09d8da740560d83b7b31001e4 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix build from 'dotnet' cmd lineMiguel Costa2025-09-241-0/+14
| | | | | | | | | The current auto-test and peformance measurement facilities are out-of-date and have now been disabled. These will be reintroduced in a subsequent change. Change-Id: I71d3bdf96f7d8b1a30a7c5e6f84883d5b7b6ea00 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Make QML engine accessible in C#Miguel Costa2025-09-242-7/+7
| | | | | | | | This will allow QML files and generated element types to be loaded from C# code, e.g. from the Program.Main() entry-point. Change-Id: Ia7ceecccf5b36ed43dab08b4a66694fbe32b49de Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Replace QmlSingleton attrib with QmlElement paramMiguel Costa2025-08-081-2/+1
| | | | | Change-Id: I575acc39fac5c12e07f0e4da3193ba94b337137a Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add UserView exampleMiguel Costa2025-07-0218-0/+1041
| | | | | Change-Id: Ie77d0156c9e54be57547c160c3a2b2934ce050a8 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* RefactorMiguel Costa2025-06-2559-4475/+0
| | | | | | | | | | | | | | | | Includes: * Implement QDotNetNativeInterface: specialization of QDotNetInterface that wraps a pointer to native data. * Implement IQVariant: QDotNetNativeInterface that wraps a QVariant. * Implement IQModelIndex interface: QDotNetNativeInterface that wraps a QModelIndex. * Implement QDotNetAbstractListModel base class: allows extending QAbstractListModel in C#. * Add class QDotNetDelegate * Remove old examples Change-Id: I2eb21df29e1cf9379e14a64d5174eb934b5bf18a Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add example projectsMiguel Costa2023-06-1259-0/+4475
Chronometer: * QML front-end to a .NET module with a well-defined "business logic". EmbeddedWindow: * WPF window containing an embedded QML view, which runs in-process. QtAzureIoT: * Integrating Qt and .NET in a non-Windows setting. Change-Id: I4dff485b95835a3d880fe03f110c46c457a419b3 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>