How to make QCombobox painting item delegate for it's current Item? (Qt 4)

Posted by r4nj33t on Stack Overflow See other posts from Stack Overflow or by r4nj33t
Published on 2009-02-05T14:08:44Z Indexed on 2010/03/18 9:31 UTC
Read the original article Hit count: 460

Filed under:
|
|
|

QCombobox set Item delegate not painting for current Item..

I am trying to create a combo box showing different line types (Solid, Dotted, Dash etc). Currently i am setting item delegate for its content so as to draw/paint line type instead of displaying names. All line types are drawing currectly but as soon as i am selecting any line type from the combobox, the current index of combo box is displaying just the line name and not painting it. How can i make it paint the selected line type on the current combo box index?

© Stack Overflow or respective owner

Related posts about qt4

Related posts about qt