Main Page | Report this Page
 
   
Linux Forum Index  »  Linux Development - Applications  »  display full TreeModel in QComboBox in Qt...
Page 1 of 1    
Author Message
FranklinChen...
Posted: Mon Aug 18, 2008 4:38 pm
Guest
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.
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Sat Nov 22, 2008 1:05 pm