QWidgetItem

The QWidgetItem class is a layout item that represents a widget. More

Inheritance diagram of PySide2.QtWidgets.QWidgetItem

Detailed Description

Normally, you don’t need to use this class directly. Qt’s built-in layout managers provide the following functions for manipulating widgets in layouts:

Class

Functions

QBoxLayout

addWidget() , insertWidget() , setStretchFactor()

QGridLayout

addWidget()

QStackedLayout

addWidget() , insertWidget() , currentWidget() , setCurrentWidget() , widget()

class PySide2.QtWidgets.QWidgetItem(w)

Creates an item containing the given widget .

PySide2.QtWidgets.QWidgetItem.wid