self.listwidget = QtGui.QListWidget(Dialog) entries = ['one','two', 'three'] self.listwidget.addItems(entries) self.gridLayout.addWidget(self.listwidget, 1, 0, 1, 2)
References
https://stackoverflow.com/questions/49385525/adding-items-to-qlistview
self.listwidget = QtGui.QListWidget(Dialog) entries = ['one','two', 'three'] self.listwidget.addItems(entries) self.gridLayout.addWidget(self.listwidget, 1, 0, 1, 2)
References
https://stackoverflow.com/questions/49385525/adding-items-to-qlistview