[Development] QAction in Qt 6 - next step proposal

Friedemann Kleint Friedemann.Kleint at qt.io
Wed Nov 27 13:29:40 CET 2019


 > I didn't know that there is going to be one more subclass. Will 
QQuickAction be a public class?

In Qt 5, AFAIK it exists with duplicated code in QuickControls1,2 as a 
class exposed to QML (no public C++ class). The duplication (and also 
need for the functionality for WebAction) is one of the reasons for the 

In QML3, it could become a public class indeed.. it could be sth like

namespace Quick { class Action ...};

 >in QtGui/qaction.h

 > // forward declare classes from QtWidget
 > class QMenu;
 > class QWidget;

Again, this poses huge problems for Qt for Python (besides being a 
questionable design).

Regards, Friedemann

Friedemann Kleint
The Qt Company GmbH

More information about the Development mailing list