QPushButton class
Help on class QPushButton in module PyQt5.QtWidgets:
class QPushButton(QAbstractButton)
| QPushButton(parent: QWidget = None)
| QPushButton(str, parent: QWidget = None)
| QPushButton(QIcon, str, parent: QWidget = None)
|
| Method resolution order:
| QPushButton
| QAbstractButton
| QWidget
| PyQt5.QtCore.QObject
| sip.wrapper
| PyQt5.QtGui.QPaintDevice
| sip.simplewrapper
| builtins.object
|
| Methods defined here:
|
| actionEvent(...)
|
| autoDefault(...)
| autoDefault(self) -> bool
|
| changeEvent(...)
|
| checkStateSet(...)
|
| childEvent(...)
|
| closeEvent(...)
|
| connectNotify(...)
|
| contextMenuEvent(...)
|
| create(...)
|
| customEvent(...)
|
| destroy(...)
|
| disconnectNotify(...)
|
| dragEnterEvent(...)
|
| dragLeaveEvent(...)
|
| dragMoveEvent(...)
|
| dropEvent(...)
|
| enterEvent(...)
|
| event(...)
| event(self, QEvent) -> bool
|
| focusInEvent(...)
| focusInEvent(self, QFocusEvent)
|
| focusNextChild(...)
|
| focusNextPrevChild(...)
|
| focusOutEvent(...)
| focusOutEvent(self, QFocusEvent)
|
| focusPreviousChild(...)
|
| hideEvent(...)
|
| hitButton(...)
|
| initPainter(...)
|
| initStyleOption(...)
| initStyleOption(self, QStyleOptionButton)
|
| inputMethodEvent(...)
|
| isDefault(...)
| isDefault(self) -> bool
|
| isFlat(...)
| isFlat(self) -> bool
|
| isSignalConnected(...)
|
| keyPressEvent(...)
| keyPressEvent(self, QKeyEvent)
|
| keyReleaseEvent(...)
|
| leaveEvent(...)
|
| menu(...)
| menu(self) -> QMenu
|
| metric(...)
|
| minimumSizeHint(...)
| minimumSizeHint(self) -> QSize
|
| mouseDoubleClickEvent(...)
|
| mouseMoveEvent(...)
|
| mousePressEvent(...)
|
| mouseReleaseEvent(...)
|
| moveEvent(...)
|
| nativeEvent(...)
|
| nextCheckState(...)
|
| paintEvent(...)
| paintEvent(self, QPaintEvent)
|
| receivers(...)
|
| resizeEvent(...)
|
| sender(...)
|
| senderSignalIndex(...)
|
| setAutoDefault(...)
| setAutoDefault(self, bool)
|
| setDefault(...)
| setDefault(self, bool)
|
| setFlat(...)
| setFlat(self, bool)
|
| setMenu(...)
| setMenu(self, QMenu)
|
| sharedPainter(...)
|
| showEvent(...)
|
| showMenu(...)
| showMenu(self)
|
| sizeHint(...)
| sizeHint(self) -> QSize
|
| tabletEvent(...)
|
| timerEvent(...)
|
| updateMicroFocus(...)
|
| wheelEvent(...)
|
| ----------------------------------------------------------------------
| Methods inherited from QAbstractButton:
|
| animateClick(...)
| animateClick(self, msecs: int = 100)
|
| autoExclusive(...)
| autoExclusive(self) -> bool
|
| autoRepeat(...)
| autoRepeat(self) -> bool
|
| autoRepeatDelay(...)
| autoRepeatDelay(self) -> int
|
| autoRepeatInterval(...)
| autoRepeatInterval(self) -> int
|
| click(...)
| click(self)
|
| clicked = <unbound PYQT_SIGNAL clicked(bool)>
| group(...)
| group(self) -> QButtonGroup
|
| icon(...)
| icon(self) -> QIcon
|
| iconSize(...)
| iconSize(self) -> QSize
|
| isCheckable(...)
| isCheckable(self) -> bool
|
| isChecked(...)
| isChecked(self) -> bool
|
| isDown(...)
| isDown(self) -> bool
|
| pressed = <unbound PYQT_SIGNAL pressed()>
| released = <unbound PYQT_SIGNAL released()>
| setAutoExclusive(...)
| setAutoExclusive(self, bool)
|
| setAutoRepeat(...)
| setAutoRepeat(self, bool)
|
| setAutoRepeatDelay(...)
| setAutoRepeatDelay(self, int)
|
| setAutoRepeatInterval(...)
| setAutoRepeatInterval(self, int)
|
| setCheckable(...)
| setCheckable(self, bool)
|
| setChecked(...)
| setChecked(self, bool)
|
| setDown(...)
| setDown(self, bool)
|
| setIcon(...)
| setIcon(self, QIcon)
|
| setIconSize(...)
| setIconSize(self, QSize)
|
| setShortcut(...)
| setShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int])
|
| setText(...)
| setText(self, str)
|
| shortcut(...)
| shortcut(self) -> QKeySequence
|
| text(...)
| text(self) -> str
|
| toggle(...)
| toggle(self)
|
| toggled = <unbound PYQT_SIGNAL toggled(bool)>
| ----------------------------------------------------------------------
| Methods inherited from QWidget:
|
| acceptDrops(...)
| acceptDrops(self) -> bool
|
| accessibleDescription(...)
| accessibleDescription(self) -> str
|
| accessibleName(...)
| accessibleName(self) -> str
|
| actions(...)
| actions(self) -> List[QAction]
|
| activateWindow(...)
| activateWindow(self)
|
| addAction(...)
| addAction(self, QAction)
|
| addActions(...)
| addActions(self, object)
|
| adjustSize(...)
| adjustSize(self)
|
| autoFillBackground(...)
| autoFillBackground(self) -> bool
|
| backgroundRole(...)
| backgroundRole(self) -> QPalette.ColorRole
|
| baseSize(...)
| baseSize(self) -> QSize
|
| childAt(...)
| childAt(self, QPoint) -> QWidget
| childAt(self, int, int) -> QWidget
|
| childrenRect(...)
| childrenRect(self) -> QRect
|
| childrenRegion(...)
| childrenRegion(self) -> QRegion
|
| clearFocus(...)
| clearFocus(self)
|
| clearMask(...)
| clearMask(self)
|
| close(...)
| close(self) -> bool
|
| contentsMargins(...)
| contentsMargins(self) -> QMargins
|
| contentsRect(...)
| contentsRect(self) -> QRect
|
| contextMenuPolicy(...)
| contextMenuPolicy(self) -> Qt.ContextMenuPolicy
|
| createWindowContainer(...)
| createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) -> QWidget
|
| cursor(...)
| cursor(self) -> QCursor
|
| customContextMenuRequested = <unbound PYQT_SIGNAL customContextMenuRequested(QPoint)>
| devType(...)
| devType(self) -> int
|
| effectiveWinId(...)
| effectiveWinId(self) -> sip.voidptr
|
| ensurePolished(...)
| ensurePolished(self)
|
| find(...)
| find(sip.voidptr) -> QWidget
|
| focusPolicy(...)
| focusPolicy(self) -> Qt.FocusPolicy
|
| focusProxy(...)
| focusProxy(self) -> QWidget
|
| focusWidget(...)
| focusWidget(self) -> QWidget
|
| font(...)
| font(self) -> QFont
|
| fontInfo(...)
| fontInfo(self) -> QFontInfo
|
| fontMetrics(...)
| fontMetrics(self) -> QFontMetrics
|
| foregroundRole(...)
| foregroundRole(self) -> QPalette.ColorRole
|
| frameGeometry(...)
| frameGeometry(self) -> QRect
|
| frameSize(...)
| frameSize(self) -> QSize
|
| geometry(...)
| geometry(self) -> QRect
|
| getContentsMargins(...)
| getContentsMargins(self) -> Tuple[int, int, int, int]
|
| grab(...)
| grab(self, rectangle: QRect = QRect(QPoint(0,0),QSize(-1,-1))) -> QPixmap
|
| grabGesture(...)
| grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
|
| grabKeyboard(...)
| grabKeyboard(self)
|
| grabMouse(...)
| grabMouse(self)
| grabMouse(self, Union[QCursor, Qt.CursorShape])
|
| grabShortcut(...)
| grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) -> int
|
| graphicsEffect(...)
| graphicsEffect(self) -> QGraphicsEffect
|
| graphicsProxyWidget(...)
| graphicsProxyWidget(self) -> QGraphicsProxyWidget
|
| hasFocus(...)
| hasFocus(self) -> bool
|
| hasHeightForWidth(...)
| hasHeightForWidth(self) -> bool
|
| hasMouseTracking(...)
| hasMouseTracking(self) -> bool
|
| height(...)
| height(self) -> int
|
| heightForWidth(...)
| heightForWidth(self, int) -> int
|
| hide(...)
| hide(self)
|
| inputMethodHints(...)
| inputMethodHints(self) -> Qt.InputMethodHints
|
| inputMethodQuery(...)
| inputMethodQuery(self, Qt.InputMethodQuery) -> Any
|
| insertAction(...)
| insertAction(self, QAction, QAction)
|
| insertActions(...)
| insertActions(self, QAction, Iterable[QAction])
|
| isActiveWindow(...)
| isActiveWindow(self) -> bool
|
| isAncestorOf(...)
| isAncestorOf(self, QWidget) -> bool
|
| isEnabled(...)
| isEnabled(self) -> bool
|
| isEnabledTo(...)
| isEnabledTo(self, QWidget) -> bool
|
| isFullScreen(...)
| isFullScreen(self) -> bool
|
| isHidden(...)
| isHidden(self) -> bool
|
| isLeftToRight(...)
| isLeftToRight(self) -> bool
|
| isMaximized(...)
| isMaximized(self) -> bool
|
| isMinimized(...)
| isMinimized(self) -> bool
|
| isModal(...)
| isModal(self) -> bool
|
| isRightToLeft(...)
| isRightToLeft(self) -> bool
|
| isVisible(...)
| isVisible(self) -> bool
|
| isVisibleTo(...)
| isVisibleTo(self, QWidget) -> bool
|
| isWindow(...)
| isWindow(self) -> bool
|
| isWindowModified(...)
| isWindowModified(self) -> bool
|
| keyboardGrabber(...)
| keyboardGrabber() -> QWidget
|
| layout(...)
| layout(self) -> QLayout
|
| layoutDirection(...)
| layoutDirection(self) -> Qt.LayoutDirection
|
| locale(...)
| locale(self) -> QLocale
|
| lower(...)
| lower(self)
|
| mapFrom(...)
| mapFrom(self, QWidget, QPoint) -> QPoint
|
| mapFromGlobal(...)
| mapFromGlobal(self, QPoint) -> QPoint
|
| mapFromParent(...)
| mapFromParent(self, QPoint) -> QPoint
|
| mapTo(...)
| mapTo(self, QWidget, QPoint) -> QPoint
|
| mapToGlobal(...)
| mapToGlobal(self, QPoint) -> QPoint
|
| mapToParent(...)
| mapToParent(self, QPoint) -> QPoint
|
| mask(...)
| mask(self) -> QRegion
|
| maximumHeight(...)
| maximumHeight(self) -> int
|
| maximumSize(...)
| maximumSize(self) -> QSize
|
| maximumWidth(...)
| maximumWidth(self) -> int
|
| minimumHeight(...)
| minimumHeight(self) -> int
|
| minimumSize(...)
| minimumSize(self) -> QSize
|
| minimumWidth(...)
| minimumWidth(self) -> int
|
| mouseGrabber(...)
| mouseGrabber() -> QWidget
|
| move(...)
| move(self, QPoint)
| move(self, int, int)
|
| nativeParentWidget(...)
| nativeParentWidget(self) -> QWidget
|
| nextInFocusChain(...)
| nextInFocusChain(self) -> QWidget
|
| normalGeometry(...)
| normalGeometry(self) -> QRect
|
| overrideWindowFlags(...)
| overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
|
| overrideWindowState(...)
| overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
|
| paintEngine(...)
| paintEngine(self) -> QPaintEngine
|
| palette(...)
| palette(self) -> QPalette
|
| parentWidget(...)
| parentWidget(self) -> QWidget
|
| pos(...)
| pos(self) -> QPoint
|
| previousInFocusChain(...)
| previousInFocusChain(self) -> QWidget
|
| raise_(...)
| raise_(self)
|
| rect(...)
| rect(self) -> QRect
|
| releaseKeyboard(...)
| releaseKeyboard(self)
|
| releaseMouse(...)
| releaseMouse(self)
|
| releaseShortcut(...)
| releaseShortcut(self, int)
|
| removeAction(...)
| removeAction(self, QAction)
|
| render(...)
| render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
| render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
|
| repaint(...)
| repaint(self)
| repaint(self, int, int, int, int)
| repaint(self, QRect)
| repaint(self, QRegion)
|
| resize(...)
| resize(self, QSize)
| resize(self, int, int)
|
| restoreGeometry(...)
| restoreGeometry(self, Union[QByteArray, bytes, bytearray]) -> bool
|
| saveGeometry(...)
| saveGeometry(self) -> QByteArray
|
| scroll(...)
| scroll(self, int, int)
| scroll(self, int, int, QRect)
|
| setAcceptDrops(...)
| setAcceptDrops(self, bool)
|
| setAccessibleDescription(...)
| setAccessibleDescription(self, str)
|
| setAccessibleName(...)
| setAccessibleName(self, str)
|
| setAttribute(...)
| setAttribute(self, Qt.WidgetAttribute, on: bool = True)
|
| setAutoFillBackground(...)
| setAutoFillBackground(self, bool)
|
| setBackgroundRole(...)
| setBackgroundRole(self, QPalette.ColorRole)
|
| setBaseSize(...)
| setBaseSize(self, int, int)
| setBaseSize(self, QSize)
|
| setContentsMargins(...)
| setContentsMargins(self, int, int, int, int)
| setContentsMargins(self, QMargins)
|
| setContextMenuPolicy(...)
| setContextMenuPolicy(self, Qt.ContextMenuPolicy)
|
| setCursor(...)
| setCursor(self, Union[QCursor, Qt.CursorShape])
|
| setDisabled(...)
| setDisabled(self, bool)
|
| setEnabled(...)
| setEnabled(self, bool)
|
| setFixedHeight(...)
| setFixedHeight(self, int)
|
| setFixedSize(...)
| setFixedSize(self, QSize)
| setFixedSize(self, int, int)
|
| setFixedWidth(...)
| setFixedWidth(self, int)
|
| setFocus(...)
| setFocus(self)
| setFocus(self, Qt.FocusReason)
|
| setFocusPolicy(...)
| setFocusPolicy(self, Qt.FocusPolicy)
|
| setFocusProxy(...)
| setFocusProxy(self, QWidget)
|
| setFont(...)
| setFont(self, QFont)
|
| setForegroundRole(...)
| setForegroundRole(self, QPalette.ColorRole)
|
| setGeometry(...)
| setGeometry(self, QRect)
| setGeometry(self, int, int, int, int)
|
| setGraphicsEffect(...)
| setGraphicsEffect(self, QGraphicsEffect)
|
| setHidden(...)
| setHidden(self, bool)
|
| setInputMethodHints(...)
| setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
|
| setLayout(...)
| setLayout(self, QLayout)
|
| setLayoutDirection(...)
| setLayoutDirection(self, Qt.LayoutDirection)
|
| setLocale(...)
| setLocale(self, QLocale)
|
| setMask(...)
| setMask(self, QBitmap)
| setMask(self, QRegion)
|
| setMaximumHeight(...)
| setMaximumHeight(self, int)
|
| setMaximumSize(...)
| setMaximumSize(self, int, int)
| setMaximumSize(self, QSize)
|
| setMaximumWidth(...)
| setMaximumWidth(self, int)
|
| setMinimumHeight(...)
| setMinimumHeight(self, int)
|
| setMinimumSize(...)
| setMinimumSize(self, int, int)
| setMinimumSize(self, QSize)
|
| setMinimumWidth(...)
| setMinimumWidth(self, int)
|
| setMouseTracking(...)
| setMouseTracking(self, bool)
|
| setPalette(...)
| setPalette(self, QPalette)
|
| setParent(...)
| setParent(self, QWidget)
| setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
|
| setShortcutAutoRepeat(...)
| setShortcutAutoRepeat(self, int, enabled: bool = True)
|
| setShortcutEnabled(...)
| setShortcutEnabled(self, int, enabled: bool = True)
|
| setSizeIncrement(...)
| setSizeIncrement(self, int, int)
| setSizeIncrement(self, QSize)
|
| setSizePolicy(...)
| setSizePolicy(self, QSizePolicy)
| setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
|
| setStatusTip(...)
| setStatusTip(self, str)
|
| setStyle(...)
| setStyle(self, QStyle)
|
| setStyleSheet(...)
| setStyleSheet(self, str)
|
| setTabOrder(...)
| setTabOrder(QWidget, QWidget)
|
| setToolTip(...)
| setToolTip(self, str)
|
| setToolTipDuration(...)
| setToolTipDuration(self, int)
|
| setUpdatesEnabled(...)
| setUpdatesEnabled(self, bool)
|
| setVisible(...)
| setVisible(self, bool)
|
| setWhatsThis(...)
| setWhatsThis(self, str)
|
| setWindowFilePath(...)
| setWindowFilePath(self, str)
|
| setWindowFlags(...)
| setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
|
| setWindowIcon(...)
| setWindowIcon(self, QIcon)
|
| setWindowIconText(...)
| setWindowIconText(self, str)
|
| setWindowModality(...)
| setWindowModality(self, Qt.WindowModality)
|
| setWindowModified(...)
| setWindowModified(self, bool)
|
| setWindowOpacity(...)
| setWindowOpacity(self, float)
|
| setWindowRole(...)
| setWindowRole(self, str)
|
| setWindowState(...)
| setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
|
| setWindowTitle(...)
| setWindowTitle(self, str)
|
| show(...)
| show(self)
|
| showFullScreen(...)
| showFullScreen(self)
|
| showMaximized(...)
| showMaximized(self)
|
| showMinimized(...)
| showMinimized(self)
|
| showNormal(...)
| showNormal(self)
|
| size(...)
| size(self) -> QSize
|
| sizeIncrement(...)
| sizeIncrement(self) -> QSize
|
| sizePolicy(...)
| sizePolicy(self) -> QSizePolicy
|
| stackUnder(...)
| stackUnder(self, QWidget)
|
| statusTip(...)
| statusTip(self) -> str
|
| style(...)
| style(self) -> QStyle
|
| styleSheet(...)
| styleSheet(self) -> str
|
| testAttribute(...)
| testAttribute(self, Qt.WidgetAttribute) -> bool
|
| toolTip(...)
| toolTip(self) -> str
|
| toolTipDuration(...)
| toolTipDuration(self) -> int
|
| underMouse(...)
| underMouse(self) -> bool
|
| ungrabGesture(...)
| ungrabGesture(self, Qt.GestureType)
|
| unsetCursor(...)
| unsetCursor(self)
|
| unsetLayoutDirection(...)
| unsetLayoutDirection(self)
|
| unsetLocale(...)
| unsetLocale(self)
|
| update(...)
| update(self)
| update(self, QRect)
| update(self, QRegion)
| update(self, int, int, int, int)
|
| updateGeometry(...)
| updateGeometry(self)
|
| updatesEnabled(...)
| updatesEnabled(self) -> bool
|
| visibleRegion(...)
| visibleRegion(self) -> QRegion
|
| whatsThis(...)
| whatsThis(self) -> str
|
| width(...)
| width(self) -> int
|
| winId(...)
| winId(self) -> sip.voidptr
|
| window(...)
| window(self) -> QWidget
|
| windowFilePath(...)
| windowFilePath(self) -> str
|
| windowFlags(...)
| windowFlags(self) -> Qt.WindowFlags
|
| windowHandle(...)
| windowHandle(self) -> QWindow
|
| windowIcon(...)
| windowIcon(self) -> QIcon
|
| windowIconChanged = <unbound PYQT_SIGNAL windowIconChanged(QIcon)>
| windowIconText(...)
| windowIconText(self) -> str
|
| windowIconTextChanged = <unbound PYQT_SIGNAL windowIconTextChanged(QString)>
| windowModality(...)
| windowModality(self) -> Qt.WindowModality
|
| windowOpacity(...)
| windowOpacity(self) -> float
|
| windowRole(...)
| windowRole(self) -> str
|
| windowState(...)
| windowState(self) -> Qt.WindowStates
|
| windowTitle(...)
| windowTitle(self) -> str
|
| windowTitleChanged = <unbound PYQT_SIGNAL windowTitleChanged(QString)>
| windowType(...)
| windowType(self) -> Qt.WindowType
|
| x(...)
| x(self) -> int
|
| y(...)
| y(self) -> int
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from QWidget:
|
| DrawChildren = 2
|
| DrawWindowBackground = 1
|
| IgnoreMask = 4
|
| RenderFlag = <class 'PyQt5.QtWidgets.QWidget.RenderFlag'>
| int(x=0) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| RenderFlags = <class 'PyQt5.QtWidgets.RenderFlags'>
| QWidget.RenderFlags()
| QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag])
| QWidget.RenderFlags(QWidget.RenderFlags)
|
| ----------------------------------------------------------------------
| Methods inherited from PyQt5.QtCore.QObject:
|
| __getattr__(...)
| __getattr__(self, str) -> object
|
| blockSignals(...)
| blockSignals(self, bool) -> bool
|
| children(...)
| children(self) -> object
|
| deleteLater(...)
| deleteLater(self)
|
| destroyed = <unbound PYQT_SIGNAL destroyed(QObject*)>
| disconnect(...)
| disconnect(self)
|
| dumpObjectInfo(...)
| dumpObjectInfo(self)
|
| dumpObjectTree(...)
| dumpObjectTree(self)
|
| dynamicPropertyNames(...)
| dynamicPropertyNames(self) -> object
|
| eventFilter(...)
| eventFilter(self, QObject, QEvent) -> bool
|
| findChild(...)
| findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
| findChild(self, Tuple, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
|
| findChildren(...)
| findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
| findChildren(self, Tuple, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
| findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
| findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
| findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
| findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
|
| inherits(...)
| inherits(self, str) -> bool
|
| installEventFilter(...)
| installEventFilter(self, QObject)
|
| isWidgetType(...)
| isWidgetType(self) -> bool
|
| isWindowType(...)
| isWindowType(self) -> bool
|
| killTimer(...)
| killTimer(self, int)
|
| metaObject(...)
| metaObject(self) -> QMetaObject
|
| moveToThread(...)
| moveToThread(self, QThread)
|
| objectName(...)
| objectName(self) -> str
|
| objectNameChanged = <unbound PYQT_SIGNAL objectNameChanged(QString)>
| parent(...)
| parent(self) -> QObject
|
| property(...)
| property(self, str) -> Any
|
| pyqtConfigure(...)
| QObject.pyqtConfigure(...)
|
| Each keyword argument is either the name of a Qt property or a Qt signal.
| For properties the property is set to the given value which should be of an
| appropriate type.
| For signals the signal is connected to the given value which should be a
| callable.
|
| removeEventFilter(...)
| removeEventFilter(self, QObject)
|
| setObjectName(...)
| setObjectName(self, str)
|
| setProperty(...)
| setProperty(self, str, Any) -> bool
|
| signalsBlocked(...)
| signalsBlocked(self) -> bool
|
| startTimer(...)
| startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) -> int
|
| thread(...)
| thread(self) -> QThread
|
| tr(...)
| tr(self, str, disambiguation: str = None, n: int = -1) -> str
|
| ----------------------------------------------------------------------
| Data descriptors inherited from PyQt5.QtCore.QObject:
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from PyQt5.QtCore.QObject:
|
| staticMetaObject = <PyQt5.QtCore.QMetaObject object>
|
| ----------------------------------------------------------------------
| Methods inherited from PyQt5.QtGui.QPaintDevice:
|
| colorCount(...)
| colorCount(self) -> int
|
| depth(...)
| depth(self) -> int
|
| devicePixelRatio(...)
| devicePixelRatio(self) -> int
|
| devicePixelRatioF(...)
| devicePixelRatioF(self) -> float
|
| devicePixelRatioFScale(...)
| devicePixelRatioFScale() -> float
|
| heightMM(...)
| heightMM(self) -> int
|
| logicalDpiX(...)
| logicalDpiX(self) -> int
|
| logicalDpiY(...)
| logicalDpiY(self) -> int
|
| paintingActive(...)
| paintingActive(self) -> bool
|
| physicalDpiX(...)
| physicalDpiX(self) -> int
|
| physicalDpiY(...)
| physicalDpiY(self) -> int
|
| widthMM(...)
| widthMM(self) -> int
|
| ----------------------------------------------------------------------
| Data and other attributes inherited from PyQt5.QtGui.QPaintDevice:
|
| PaintDeviceMetric = <class 'PyQt5.QtGui.QPaintDevice.PaintDeviceMetric...
| int(x=0) -> integer
| int(x, base=10) -> integer
|
| Convert a number or string to an integer, or return 0 if no arguments
| are given. If x is a number, return x.__int__(). For floating point
| numbers, this truncates towards zero.
|
| If x is not a number or if base is given, then x must be a string,
| bytes, or bytearray instance representing an integer literal in the
| given base. The literal can be preceded by '+' or '-' and be surrounded
| by whitespace. The base defaults to 10. Valid bases are 0 and 2-36.
| Base 0 means to interpret the base from the string as an integer literal.
| >>> int('0b100', base=0)
| 4
|
| PdmDepth = 6
|
| PdmDevicePixelRatio = 11
|
| PdmDevicePixelRatioScaled = 12
|
| PdmDpiX = 7
|
| PdmDpiY = 8
|
| PdmHeight = 2
|
| PdmHeightMM = 4
|
| PdmNumColors = 5
|
| PdmPhysicalDpiX = 9
|
| PdmPhysicalDpiY = 10
|
| PdmWidth = 1
|
| PdmWidthMM = 3
|
| ----------------------------------------------------------------------
| Methods inherited from sip.simplewrapper:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __new__(*args, **kwargs) from sip.wrappertype
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from sip.simplewrapper:
|
| __dict__
QPushButton class的更多相关文章
- QPushButton 与 QListWidget 的按键响应
在Qt中添加按钮或表格控件时需要添加其按键响应,一般来说有两种方法,一种是直接实现其响应函数,第二种是自己写一个响应函数,然后用Qt的信号槽将它们连接起来.愚以为第一种方法更为简单一些. 声明这些控件 ...
- QTableWidget嵌入QpushButton后定位是哪一个QpushButton
问题: 有时候会遇到这样的情况,在QTableWidget中我们需要嵌入一个QpushButton按钮,但是如何确定是哪个Button按下的呢? 解决: 一般地,一个按钮按下后会连接到一槽函数,那么在 ...
- Qt: qobject_cast<QPushButton*>(sender()) 简化信号与槽的编写
当你觉得写代码是一件重复性极高的工作时,这时你就应该考虑换个方式来实现了. 提高代码效率,减少代码量. 代码片: void Widget::onClicked() { QPushButton* but ...
- QT的父子Widget之间消息的传递(如果子类没有accept或ignore该事件,则该事件会被传递给其父亲——Qlabel与QPushButton的处理就不一样)
以前我一直以为:在父widget上摆一个子widget后,当click子widget时:只会进入到子widget的相关事件处理函数中,比如进入到mousePressEvent()中, 而不会进入到父w ...
- QT5控件-QPushButton和QFocusFrame(按钮和焦点框)
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QPushButton> ...
- QTableWidget嵌入QpushButton后定位QpushButton
问题: 有时候会遇到这样的情况,在QTableWidget中我们需要嵌入一个QpushButton按钮,但是如何确定是哪个Button按下的呢? 解决: 一般地,一个按钮按下后会连接到一槽函数,那么在 ...
- #include <QPushButton>
类QPushButton 命令按钮 #include "mainwindow.h" #include <QApplication> int main(int argc, ...
- Qt中QPushButton、QTabWidget等部件内容文字换行的解决方法(一定要写在源码里,写在翻译文件里不行,因为\n得不到转义)
最近在做基于Qt的应用项目,其中有一个按钮文字超长,需要换一行显示.从网上找到的建议都是将要显示的内容做成图片,然后将图片设置为该按钮的背景.但是这样做有一个很大的局限性,当需要更改内容文字的时候,需 ...
- QT 入门 -QApplication QPushButton QDialog Ui类型的手工使用
QT 1.工具 assistant 帮助文档 qtconfig QT配置工具 qmake QT的make与项目文件智能创建工具 uic UI界面的设计文件的编译工具 mo ...
- 设置QPushButton的平面与突出(遍历控件)
#include "ui_maindialog.h" #include "maindialog.h" #include <QState> #incl ...
随机推荐
- selenium+谷歌无头浏览器爬取网易新闻国内板块
网页分析 首先来看下要爬取的网站的页面 查看网页源代码:你会发现它是由js动态加载显示的 所以采用selenium+谷歌无头浏览器来爬取它 1 加载网站,并拖动到底,发现其还有个加载更多 2 模拟点击 ...
- PHP学习笔记 02 之文件上传
我们了解了表单传值后,这些我就可以完成PHP的文件上传了.我们了解PHP文件上传前,先了解PHP文件上传的原理. 一.PHP上传文件原理 第一步:将本地的文件通过form表单上传到服务器的临时目录中, ...
- c语言-自己写的库
一.俗话说算法是程序的灵魂,这下面本人写了一部分常用算法,欢迎大家使用,并提出批评和指正,当然也可以改进或者添加. 1.这是自己实现的算法库头文件 #ifndef _INC_ALGORITHM #de ...
- 基于IPV6数据包的分析(GNS3)
一.实验拓扑 二.路由配置 1.路由R1的详细配置(以R1为例,R2与R3相同) R1(config)#interface fastEthernet 0/1 R1(config-if)#ipv6 ad ...
- 【重学计算机】机组D6章:中央处理器
1. CPU的组成与功能 2. 数据通路 概念:执行部件间传送信息的路径,分共享通路(总线)和专用通路 抽象模型:时钟驱动下,A --> 组合逻辑 --> B D触发器定时模型: 时钟触发 ...
- Asp.Net Core 轻松学-利用xUnit进行主机级别的网络集成测试
前言 在开发 Asp.Net Core 应用程序的过程中,我们常常需要对业务代码编写单元测试,这种方法既快速又有效,利用单元测试做代码覆盖测试,也是非常必要的事情:但是,但我们需要对系统进行集 ...
- 105 - kube-scheduler源码分析 - predicate算法注册
一.predicate注册过程 今天我们来聊聊predicate函数是怎么被注册进去的,也就是要执行的一堆predicate是怎么成为“选中的孩子”. 代码位置:pkg/scheduler/fact ...
- 基于 DataLakeAnalytics 做跨地域的数据分析
在阿里云上,很多客户的应用都是多地域部署的, 比如在北京(cn-beijing)的地域部署一个应用让北方的客户访问快一点,同时在杭州(cn-hangzhou)地域部署一份让南方的客户访问快一点.多地域 ...
- hosts文件的作用
hosts文件的作用 hosts文件是一个没有扩展名的系统文件,可以用记事本等工具打开,作用就是将一些常用的网址域名与其对应的IP地址建立一个关联"数据库",当用户在浏览器中输入一 ...
- webpack-插件机制杂记
系列文章 Webpack系列-第一篇基础杂记 webpack系列-插件机制杂记 前言 webpack本身并不难,他所完成的各种复杂炫酷的功能都依赖于他的插件机制.或许我们在日常的开发需求中并不需要自己 ...