Details
-
Suggestion
-
Resolution: Duplicate
-
P4: Low
-
None
-
None
-
None
Description
Currently with QState::addTransition the following is not legal:
state1->addTransition(button, &QPushButton::clicked, state2)
I still have to use the SIGNAL macro.
I'd like to see this more along the lines of the C++11 features that are now available in QObject::connect.
Example:
http://doc.qt.io/qt-5/qobject.html#connect-4
with the PointerToMemberFunction parameter. Then the above snippet would be legal.
Attachments
Issue Links
- duplicates
-
QTBUG-40293 PointerToMemberFunction support for QState::addTransition()
- Closed