以下成员源于类 QWhatsThis are part of the Qt compatibility layer. We advise against using them in new code.
| QToolButton * | whatsThisButton (QWidget * parent ) |
[static]
QToolButton
* QWhatsThis::
whatsThisButton
(
QWidget
*
parent
)
Returns a new "What's This?" QToolButton 采用给定 parent . To do this now, create your own QToolButton 和 QWhatsThis object and call the QWhatsThis 对象的 showText () function when the QToolButton is invoked.
使用 createAction () 代替。