Skip to content

Widget

Qt Base Class: QWidget

Signature: QWidget(self, parent: Optional[PySide6.QtWidgets.QWidget] = None, f: PySide6.QtCore.Qt.WindowType = Default(Qt.WindowFlags)) -> None

Base classes

Name Children Inherits
WidgetMixin
prettyqt.widgets.widget
QWidget
PySide6.QtWidgets
QWidget(self, parent: Optional[PySide6.QtWidgets.QWidget] \= None, f: PySide6.QtCore.Qt.WindowType \= Default(Qt.WindowFlags)) -> None

Subclasses

Class Module Description
CustomTitleBar prettyqt.widgets.dockwidget
StarEditor prettyqt.itemdelegates.stardelegate
Separator prettyqt.custom_widgets.layouts.flowlayout
IconLabel prettyqt.custom_widgets.labels.iconlabel
CrossFadeWidget prettyqt.custom_widgets.crossfadewidget
FaderWidget prettyqt.custom_widgets.faderwidget
ImageViewer prettyqt.custom_widgets.imageviewer
WidgetEditor prettyqt.custom_widgets.widgeteditor
CommandPalette prettyqt.custom_widgets.commandpalette
BrushEdit prettyqt.custom_widgets.editors.brushedit
BaseRectEdit prettyqt.custom_widgets.editors.rectedit
PaletteEdit prettyqt.custom_widgets.editors.paletteedit
IconEdit prettyqt.custom_widgets.editors.iconedit
PointEdit prettyqt.custom_widgets.editors.pointedit
SizeEdit prettyqt.custom_widgets.editors.sizeedit
SizePolicyEdit prettyqt.custom_widgets.editors.sizepolicyedit
RegexInput prettyqt.custom_widgets.editors.regexinput
SliceEdit prettyqt.custom_widgets.editors.sliceedit
RangeEdit prettyqt.custom_widgets.editors.rangeedit
ColorChooserButton prettyqt.custom_widgets.editors.colorchooserbutton
FileChooserButton prettyqt.custom_widgets.editors.filechooserbutton
FontChooserButton prettyqt.custom_widgets.editors.fontchooserbutton
InputAndSlider prettyqt.custom_widgets.editors.inputandslider
SpanSliderWidget prettyqt.custom_widgets.editors.spanslider
LabeledSlider prettyqt.custom_widgets.labeledslider
BaseWaitingSpinner prettyqt.custom_widgets.waitingspinner
NumFilterWidget prettyqt.custom_widgets.numfilterwidget
LineNumberArea prettyqt.custom_widgets.codeeditor
RoundProgressBar prettyqt.custom_widgets.roundprogressbar
SectionWidget prettyqt.custom_widgets.scrollareatocwidget
Timeline prettyqt.custom_widgets.timeline
StandardIconsWidget prettyqt.custom_widgets.standardiconswidget
FileExplorer prettyqt.custom_widgets.itemviews.filetree
MarkdownWidget prettyqt.prettyqtmarkdown.markdownwidget

⋔ Inheritance diagram

graph TD
  1473293661888["widgets.Widget"]
  1473293688240["widgets.WidgetMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473245548480["gui.PaintDeviceMixin"]
  1473290849680["QtWidgets.QWidget"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473300082368["QtGui.QPaintDevice"]
  1473293688240 --> 1473293661888
  1473299815024 --> 1473293688240
  140713234304496 --> 1473299815024
  1473245548480 --> 1473293688240
  140713234304496 --> 1473245548480
  1473290849680 --> 1473293661888
  1473288842240 --> 1473290849680
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208
  1473300082368 --> 1473290849680
  1473291690208 --> 1473300082368

🛈 DocStrings

Bases: WidgetMixin, QWidget

The base class of all user interface objects.

Source code in prettyqt\widgets\widget.py
class Widget(WidgetMixin, widgets.QWidget):
    """The base class of all user interface objects."""

⌗ Property table

Qt Property Type Doc
objectName QString
modal bool
windowModality Qt::WindowModality
enabled bool
geometry QRect
frameGeometry QRect
normalGeometry QRect
x int
y int
pos QPoint
frameSize QSize
size QSize
width int
height int
rect QRect
childrenRect QRect
childrenRegion QRegion
sizePolicy QSizePolicy
minimumSize QSize
maximumSize QSize
minimumWidth int
minimumHeight int
maximumWidth int
maximumHeight int
sizeIncrement QSize
baseSize QSize
palette QPalette
font QFont
cursor QCursor
mouseTracking bool
tabletTracking bool
isActiveWindow bool
focusPolicy Qt::FocusPolicy
focus bool
contextMenuPolicy Qt::ContextMenuPolicy
updatesEnabled bool
visible bool
minimized bool
maximized bool
fullScreen bool
sizeHint QSize
minimumSizeHint QSize
acceptDrops bool
windowTitle QString
windowIcon QIcon
windowIconText QString
windowOpacity double
windowModified bool
toolTip QString
toolTipDuration int
statusTip QString
whatsThis QString
accessibleName QString
accessibleDescription QString
layoutDirection Qt::LayoutDirection
autoFillBackground bool
styleSheet QString
locale QLocale
windowFilePath QString
inputMethodHints QFlags