Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.11, 6.4.1
-
f546f3700 (dev), b00e93b1d (tqtc/lts-6.2), c5544de39 (6.4)
Description
Constructors have this text:
The action uses a stripped version of text (e.g. "&Menu Option..." becomes "Menu Option") as descriptive text for tool buttons. You can override this by setting a specific description with setText().
https://doc.qt.io/qt-6/qaction.html#QAction-2
which seems to imply text is treated somehow differently compared to setText(), but actually it does not do anything special to it as seen from code. Both simply assign it as is:
https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qaction.cpp#n249
https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qaction.cpp#n607
Attachments
For Gerrit Dashboard: QTBUG-109060 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
446576,3 | Fix documentation of QAction's text property | dev | qt/qtbase | Status: MERGED | +2 | 0 |
446901,2 | Fix documentation of QAction's text property | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
446903,2 | Fix documentation of QAction's text property | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |