PythonQt.QtGui.QStyleOption · declarations 001
Back to PythonQt.QtGui.QStyleOption
OptionType
instance-attribute
OptionType: type
int([x]) -> 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
SO_Button
instance-attribute
SO_Button: Any
SO_ComboBox
instance-attribute
SO_ComboBox: Any
SO_Complex
instance-attribute
SO_Complex: Any
SO_ComplexCustomBase
instance-attribute
SO_ComplexCustomBase: Any
SO_CustomBase
instance-attribute
SO_CustomBase: Any
SO_Default
instance-attribute
SO_Default: Any
SO_DockWidget
instance-attribute
SO_DockWidget: Any
SO_FocusRect
instance-attribute
SO_FocusRect: Any
SO_Frame
instance-attribute
SO_Frame: Any
SO_GraphicsItem
instance-attribute
SO_GraphicsItem: Any
SO_GroupBox
instance-attribute
SO_GroupBox: Any
SO_Header
instance-attribute
SO_Header: Any
SO_MenuItem
instance-attribute
SO_MenuItem: Any
SO_ProgressBar
instance-attribute
SO_ProgressBar: Any
SO_RubberBand
instance-attribute
SO_RubberBand: Any
SO_SizeGrip
instance-attribute
SO_SizeGrip: Any
SO_Slider
instance-attribute
SO_Slider: Any
SO_SpinBox
instance-attribute
SO_SpinBox: Any
SO_Tab
instance-attribute
SO_Tab: Any
SO_TabBarBase
instance-attribute
SO_TabBarBase: Any
SO_TabWidgetFrame
instance-attribute
SO_TabWidgetFrame: Any
SO_TitleBar
instance-attribute
SO_TitleBar: Any
SO_ToolBar
instance-attribute
SO_ToolBar: Any
SO_ToolBox
instance-attribute
SO_ToolBox: Any
SO_ToolButton
instance-attribute
SO_ToolButton: Any
SO_ViewItem
instance-attribute
SO_ViewItem: Any
initFrom
initFrom(w: Any) -> None
X.initFrom(w)
Supplemental documentation: Qt 5 reference:
void QStyleOption::initFrom(const QWidget *widget)
Initializes the state, direction, rect, palette, fontMetrics and styleObject member variables based on the specified widget.
This is a convenience function; the member variables can also be initialized manually.
This function was introduced in Qt 4.1.
See also QWidget::layoutDirection(), QWidget::rect(), QWidget::palette(), and QWidget::fontMetrics().
Upstream PySide2 reference signatures (binding differences may apply):
initFrom(self, w: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qstyleoption.html#initFrom
styleObject
instance-attribute
styleObject: QObject