diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-07 14:15:32 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-07 15:53:40 +0100 |
| commit | 1cb34de532ac9d5735d3bcbe7f6a40608d29e5ad (patch) | |
| tree | 4fcc5223fcdb2db9c33504b764326862921f3a7a /sources/pyside6/plugins/designer/designercustomwidgets.cpp | |
| parent | acab25a3ccb836818e5089b23d40196bc7414b7a (diff) | |
Brush up the usingmodel example
Although not any more in Qt, it nicely shows the use of roles
and delegates in QML.
- Use a little data class for Person.
- Change the custom role name away from "modelData" which is
now a reserved name and caused it to no longer work.
- Use a modern decorator.
Pick-to: 6.6 6.5
Task-number: PYSIDE-2206
Change-Id: I3a3c1ad96f3a7ee89ada839236b45f461af149c7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/plugins/designer/designercustomwidgets.cpp')
0 files changed, 0 insertions, 0 deletions
