Results 1 to 2 of 2

Thread: Item Delegate with multiple combo boxes painting drop-down arrow on several lines

  1. #1
    Join Date
    Nov 2009
    Posts
    44
    Thanks
    8
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Item Delegate with multiple combo boxes painting drop-down arrow on several lines

    I have an item delegate for a TreeView that contains several combo boxes. When I paint the combo boxes, I use the following code
    Qt Code:
    1. [CODE]QApplication::style()->drawComplexControl(QStyle::CC_ComboBox, &qindex ,painter);
    2. QApplication::style()->drawControl(QStyle::CE_ComboBoxLabel, &qindex, painter);
    To copy to clipboard, switch view to plain text mode 
    [/CODE]
    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?

  2. #2
    Join Date
    Nov 2009
    Posts
    44
    Thanks
    8
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Item Delegate with multiple combo boxes painting drop-down arrow on several lines

    In case anyone runs into this .... version 4.6.2 seems to have solved the problem

Similar Threads

  1. Replies: 0
    Last Post: 4th May 2010, 07:49
  2. Replies: 3
    Last Post: 26th February 2010, 22:37
  3. Replies: 2
    Last Post: 12th February 2010, 04:41
  4. Multiple Lines per item in a QListWidget/QListView
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2008, 21:44
  5. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.