Compatibility Members for QPushButton

以下成员源于类 QPushButton are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

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 )

成员函数文档编制

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

Use one of the constructors that doesn't take the name argument and then use setObjectName () 代替。

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 () 代替。

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 () 代替。

bool QPushButton:: isMenuButton () const

使用 menu () != 0 instead.

void QPushButton:: openPopup ()

使用 showMenu () 代替。

使用 menu () 代替。

另请参阅 setPopup ().

void QPushButton:: setPopup ( QMenu * popup )

使用 setMenu () 代替。

另请参阅 popup ().