| Unix Content | Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| Hi, Does anyone managed to display a full treemodel in a QComboBox? It should work corresponding to the documentation of QComboBox::setView(..) But the following test failed in Linux but successful in Windows....any ideas? Test with QTreeWidget: QTreeView* treeView = new QTreeView(); treeView->header()->hide(); m_pComboBox->setModel(myModel); m_pComboBox->setView(treeView); A remaining issue is that the size of the popup-area is defined by the number of root-rows of the model. If you only have one row at the root- level it is difficult to handle. |