Compatibility Members for QPushButton

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

Public Functions

QPushButton(QWidget * parent, const char * name)
QPushButton(const QString & text, QWidget * parent, const char * name)
QPushButton(const QIcon & icon, const QString & text, QWidget * parent, const char * name)
bool isMenuButton() const
void openPopup()
QMenu * popup() const
void setPopup(QMenu * popup)

Member Function Documentation

QPushButton::QPushButton(QWidget * parent, const char * name)

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

QPushButton::QPushButton(const QString & text, QWidget * parent, const char * name)

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

QPushButton::QPushButton(const QIcon & icon, const QString & text, QWidget * parent, const char * name)

Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.

bool QPushButton::isMenuButton() const

Use menu() != 0 instead.

void QPushButton::openPopup()

Use showMenu() instead.

Use menu() instead.

See also setPopup().

void QPushButton::setPopup(QMenu * popup)

Use setMenu() instead.

See also popup().

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