QPushButton Class Reference
[QtGui module]
Inherits QAbstractButton.
Inherited by QCommandLinkButton.
Methods
- __init__ (self, QWidget parent = None)
- __init__ (self, QString, QWidget parent = None)
- __init__ (self, QIcon, QString, QWidget parent = None)
- bool autoDefault (self)
- bool event (self, QEvent)
- focusInEvent (self, QFocusEvent)
- focusOutEvent (self, QFocusEvent)
- initStyleOption (self, QStyleOptionButton)
- bool isDefault (self)
- bool isFlat (self)
- keyPressEvent (self, QKeyEvent)
- QMenu menu (self)
- QSize minimumSizeHint (self)
- paintEvent (self, QPaintEvent)
- setAutoDefault (self, bool)
- setDefault (self, bool)
- setFlat (self, bool)
- setMenu (self, QMenu)
- showMenu (self)
- QSize sizeHint (self)
Detailed Description
Method Documentation
QPushButton.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QPushButton.__init__ (self, QString, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QPushButton.__init__ (self, QIcon, QString, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QPushButton.autoDefault (self)
bool QPushButton.event (self, QEvent)
QPushButton.focusInEvent (self, QFocusEvent)
QPushButton.focusOutEvent (self, QFocusEvent)
bool QPushButton.isDefault (self)
bool QPushButton.isFlat (self)
QPushButton.keyPressEvent (self, QKeyEvent)
QMenu QPushButton.menu (self)
QSize QPushButton.minimumSizeHint (self)
QPushButton.paintEvent (self, QPaintEvent)
QPushButton.setAutoDefault (self, bool)
QPushButton.setDefault (self, bool)
QPushButton.setFlat (self, bool)
QPushButton.setMenu (self, QMenu)
QPushButton.showMenu (self)
This method is also a Qt slot with the C++ signature void showMenu().
QSize QPushButton.sizeHint (self)