Obsolete Members for QToolButton
The following members of class QToolButton are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) QIcon | iconSet(bool on) const |
(obsolete) void | setIconSet(const QIcon & set, bool on) |
(obsolete) void | setOffIconSet(const QIcon & set) |
(obsolete) void | setOnIconSet(const QIcon & set) |
- 7 public functions inherited from QWidget
- 1 public function inherited from QPaintDevice
Member Function Documentation
QIcon QToolButton::iconSet(bool on) const
This is an overloaded function.
Since Qt 3.0, QIcon contains both the On and Off icons.
For ease of porting, this function ignores the on parameter and returns the icon property. If you relied on the on parameter, you probably want to update your code to use the QIcon On/Off mechanism.
void QToolButton::setIconSet(const QIcon & set, bool on)
This is an overloaded function.
Since Qt 3.0, QIcon contains both the On and Off icons.
For ease of porting, this function ignores the on parameter and sets the icon property. If you relied on the on parameter, you probably want to update your code to use the QIcon On/Off mechanism.
See also icon and QIcon::State.
void QToolButton::setOffIconSet(const QIcon & set)
Use setIcon() instead.
See also offIconSet().
void QToolButton::setOnIconSet(const QIcon & set)
Use setIcon() instead.
See also onIconSet().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.