Class: QgsListWidget

class qgis.gui.QgsListWidget(subType: QVariant.Type, parent: QWidget = None)

Bases: QgsTableWidgetBase

Constructor.

Widget allowing to edit a QVariantList, using a table.

New in version 3.0.

Parameters
  • subType (QVariant.Type) –

  • parent

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
init()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
list(self) → List[Any]

Gets the edit value.

Return type

List[Any]

Returns

the QVariantList

metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setList(self, list: List[Any])

Set the initial value of the widget.

Parameters

list (List[Any]) –

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
valid(self) → bool

Check the content is valid

Return type

bool

Returns

true if valid

wheelEvent()