Bug 455680

Summary: KActionCollection: Support QML Actions
Product: [Frameworks and Libraries] frameworks-kxmlgui Reporter: tusooa <tusooa>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: 5.95.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description tusooa 2022-06-20 21:39:24 UTC
SUMMARY

QML's Action type does not inherit from a QAction ( https://doc.qt.io/qt-5/qml-qtquick-controls2-action.html ). This makes it impossible to use them with the current implementations of KActionCollection (as it only accepts QActions). It would be best if KActionCollection can process QML Actions in some way.

STEPS TO REPRODUCE
N/A

OBSERVED RESULT
Cannot use KActionCollection with QML Actions.

EXPECTED RESULT
Should be able to use KActionCollection with QML Actions.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.18.3-gentoo-x86_64 / 5.25.0
(available in About System)
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
Maybe related to https://phabricator.kde.org/T13770
Comment 1 tusooa 2022-08-08 22:52:10 UTC
I'm doing some work in https://lily-is.land/kazv/kazv/-/merge_requests/17 .