display full TreeModel in QComboBox in Qt

This is a discussion on display full TreeModel in QComboBox in Qt within the KDE forums, part of the Tools category; 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 ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > KDE

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-18-2008, 10:50 PM
Default display full TreeModel in QComboBox in Qt

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.
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 08:03 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger