[Development] QAction-like API for QML
Rutledge Shawn
Shawn.Rutledge at digia.com
Wed Dec 19 14:11:06 CET 2012
On 19 Dec 2012, at 11:59 AM, André Somers wrote:
> And that new action is also integratable with QtWidgets somehow?
Not that we are planning, but I wonder if we could get that eventually by having a common base class, or some sort of converter/bridge thing.
> Or is that an action type that only integrates nicely with QML, but not with
> widgets? Please realize that code based on widgets is not by definition
> "legacy". The desktop is very much alive. New things are still written
> using it.
Of course, but if you are using widgets only, you can just use QAction the same old way. But, maybe you want to build two different GUIs, one QtQuick and one widgets-based, and share the same backend; then you'd be interested in using the same actions for both, and I guess the result would be that the widgets dll/shared library gets linked in even when the GUI is QtQuick-only, just because you created some QActions. I don't see how it can be avoided, do you?
More information about the Development
mailing list