Bug 496900

Summary: Fails to load in Qt 6.9 due to DelegateChooser Move
Product: [Plasma] plasmashell Reporter: David Edmundson <kde>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: task CC: tux
Priority: HI    
Version First Reported In: git-stable-Plasma/6.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Edmundson 2024-12-01 19:05:41 UTC
In Qt 6.9 DelegateModel moved from labs to QtModels. They removed the old reference.

This leads to klipper not loading:

qrc:/qt/qml/org/kde/plasma/private/clipboard/ClipboardMenu.qml:210:9: QtLabsModel.DelegateChoice is not a type

We ideally want a relatively generic solution
Comment 1 David Edmundson 2024-12-01 19:07:59 UTC
Fix is easy! We just use an anonymous namespace for both and then the relevant thing will load.


plasma-firewall/kcm/ui/main.qml also needs a fix
Comment 2 Bug Janitor Service 2024-12-03 12:25:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4978
Comment 3 Fushan Wen 2024-12-05 04:16:16 UTC
Git commit b192235d5560c562a17e51d51e9da332b36e08c7 by Fushan Wen, on behalf of Manuel Alcaraz Zambrano.
Committed on 05/12/2024 at 04:15.
Pushed by fusionfuture into branch 'master'.

Fix DelegateChoice import with Qt 6.9

DelegateChoice is part of QtQml.Models with Qt 6.9 with commit
qt/qt/qtdeclarative@55c3b94035787ea265c5ff6e3c271d7154186def.

M  +6    -5    klipper/declarative/qml/ClipboardMenu.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/b192235d5560c562a17e51d51e9da332b36e08c7
Comment 4 Fushan Wen 2024-12-05 04:46:05 UTC
Git commit 6b014a7ee190d590e7bd900f8bd974ea8e137912 by Fushan Wen.
Committed on 05/12/2024 at 04:16.
Pushed by fusionfuture into branch 'Plasma/6.2'.

Fix DelegateChoice import with Qt 6.9

DelegateChoice is part of QtQml.Models with Qt 6.9 with commit
qt/qt/qtdeclarative@55c3b94035787ea265c5ff6e3c271d7154186def.


(cherry picked from commit b192235d5560c562a17e51d51e9da332b36e08c7)

Co-authored-by: Manuel Alcaraz Zambrano <manuelalcarazzam@gmail.com>

M  +6    -5    klipper/declarative/qml/ClipboardMenu.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/6b014a7ee190d590e7bd900f8bd974ea8e137912
Comment 5 Antonio Rojas 2024-12-18 18:31:20 UTC
*** Bug 497658 has been marked as a duplicate of this bug. ***