[Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

Stephen Kelly stephen.kelly at kdab.com
Wed Dec 19 12:41:44 CET 2012


On Wednesday, December 19, 2012 10:25:24 Alberto Mardegan wrote:
> On 12/18/2012 06:46 PM, Alan Alpert wrote:
> [...]
> 
> > C) QGuiAction is added to Gui and is used to create the QML API and
> > the bridge with QActions.
> 
> [...]
> 
> > My favorite of those is C), but there is the unresolved question of
> > how to make an effective bridge given that we can no longer make
> > QAction inherit from QGuiAction.
> 
> I also prefer C (D is also OK). I'm not sure, but I think it might be
> possible to make QAction inherit from QGuiAction, as long as the
> structure size doesn't change (and I think it won't).

I think my preference is also C. It should be possible for most uses of 
QAction to use QGuiAction instead, even in widgets, I think. The QWidget* API 
in QAction is not really central to its functionality.

Thanks,

-- 
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121219/38a03c24/attachment.sig>


More information about the Development mailing list