[PyQt] How can I add a QBomboBox to a QTreeView?
ydkj14 at gmail.com
Sat Apr 5 13:17:52 BST 2014
I've created a QTreeView and a QStandardItemModel.
Then I add several rows and replace the item in the second column with a
item = QStandardItem(text2)
model.appendRow([ QStandardItem(text1), item ])
cbx = QComboBox()
The problem is that the combobox doesn't show up. Instead text2 is shown.
What is wrong with this code?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt