QWidgetItemclass is a layout item that represents a widget. 更多 …
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
函数
addWidget(),insertWidget(),currentWidget(),setCurrentWidget(),widget()另请参阅
PySide2.QtWidgets.QWidgetItem.
wid
¶