Bug 455680 - KActionCollection: Support QML Actions
Summary: KActionCollection: Support QML Actions
Status: REPORTED
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.95.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-20 21:39 UTC by tusooa
Modified: 2022-08-08 22:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 .