PDA

View Full Version : Item Delegate with multiple combo boxes painting drop-down arrow on several lines



LynneV
7th May 2010, 21:21
I have an item delegate for a TreeView that contains several combo boxes. When I paint the combo boxes, I use the following code


QApplication::style()->drawComplexControl(QStyle::CC_ComboBox, &qindex ,painter);
QApplication::style()->drawControl(QStyle::CE_ComboBoxLabel, &qindex, painter);
The combo box paints fine, but on the top parent node of the tree, I get 'shadow' drop down arrows ... one for each combo box drawn. So for a tree with several levels, I get a row of combo-box triangles on the top line! Any thoughts on how to get rid of them?

LynneV
29th June 2010, 18:59
In case anyone runs into this .... version 4.6.2 seems to have solved the problem