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?
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?