Small gap in Qt documentation
-
We have QMenu class, which inherits QWidget. QWidget has method addAction, that accepts QAction like parameter. There is this method in "List of all members, including inherited members", but not in the same list in QMenu.
method - addAction(QAction * ) -
We have QMenu class, which inherits QWidget. QWidget has method addAction, that accepts QAction like parameter. There is this method in "List of all members, including inherited members", but not in the same list in QMenu.
method - addAction(QAction * )@zonman
It looks like you are correct. You would have to raise this as a Qt bug (a few years ago I raised one similar and they fixed it, I think they do something to auto-generate this list and there are some inheritance glitches). But first have you verifiedQMenu::addAction(QAction * )definitely works, just in case they have done something to "hide it" in theQMenuclass? -
@zonman
It looks like you are correct. You would have to raise this as a Qt bug (a few years ago I raised one similar and they fixed it, I think they do something to auto-generate this list and there are some inheritance glitches). But first have you verifiedQMenu::addAction(QAction * )definitely works, just in case they have done something to "hide it" in theQMenuclass?@JonB It's indeed a bug, fixed in Qt 6 documentation. Compare e.g.
https://doc.qt.io/qt-6/qwidget-members.html
I see the commit that fixed it didn't get merged into 5.15 though, probably because of conflicts :/ So given that 5.15 won't see many releases anymore, I don't think this will still be fixed.
-
@JonB It's indeed a bug, fixed in Qt 6 documentation. Compare e.g.
https://doc.qt.io/qt-6/qwidget-members.html
I see the commit that fixed it didn't get merged into 5.15 though, probably because of conflicts :/ So given that 5.15 won't see many releases anymore, I don't think this will still be fixed.
-
@JonB It's indeed a bug, fixed in Qt 6 documentation. Compare e.g.
https://doc.qt.io/qt-6/qwidget-members.html
I see the commit that fixed it didn't get merged into 5.15 though, probably because of conflicts :/ So given that 5.15 won't see many releases anymore, I don't think this will still be fixed.
-
Z zonman has marked this topic as solved on