I've created a QTreeView and a QStandardItemModel.
Then I add several rows and replace the item in the second column with a
combobox.
item = QStandardItem(text2)
model.appendRow([ QStandardItem(text1), item ])
cbx = QComboBox()
cbx.addItem("A")
cbx.addItem("B")
tvw.setIndexWidget(model.indexFromItem(item), cbx)
The problem is that the combobox doesn't show up. Instead text2 is shown.
What is wrong with this code?
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside