Compatibility Members for QAbstractButton

The following members of class QAbstractButtonare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QAbstractButton(QWidget * parent, const char * name, Qt::WindowFlags f = 0)
QKeySequence accel() const
QIcon * iconSet() const
bool isOn() const
bool isToggleButton() const
const QPixmap * pixmap() const
void setAccel(const QKeySequence & key)
void setIconSet(const QIcon & icon)
void setPixmap(const QPixmap & p)
void setToggleButton(bool b)
  • 57 public functions inherited from QWidget
  • 8 public functions inherited from QObject
  • 8 public functions inherited from QPaintDevice

Public Slots

void setOn(bool b)
  • 1 public slot inherited from QWidget

Member Function Documentation

QAbstractButton::QAbstractButton(QWidget * parent, const char * name, Qt::WindowFlags f = 0)

Use QAbstractButton(QWidget *) instead.

Call setObjectName() if you want to specify an object name, and setParent() if you want to set the window flags.

QKeySequence QAbstractButton::accel() const

Use shortcut() instead.

See also setAccel().

QIcon * QAbstractButton::iconSet() const

Use icon() instead.

See also setIconSet().

bool QAbstractButton::isOn() const

Use isChecked() instead.

bool QAbstractButton::isToggleButton() const

Use isCheckable() instead.

const QPixmap * QAbstractButton::pixmap() const

This compatibility function always returns 0.

Use icon() instead.

See also setPixmap().

void QAbstractButton::setAccel(const QKeySequence & key)

Use setShortcut() instead.

See also accel().

void QAbstractButton::setIconSet(const QIcon & icon)

Use setIcon() instead.

See also iconSet().

[slot] void QAbstractButton::setOn(bool b)

Use setChecked() instead.

See also isOn().

void QAbstractButton::setPixmap(const QPixmap & p)

Use setIcon() instead.

See also pixmap().

void QAbstractButton::setToggleButton(bool b)

Use setCheckable() instead.

See also isToggleButton().

© 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.