Results 1 to 20 of 35

Thread: How to simplify a complex item delegate?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to simplify a complex item delegate?

    I have a crazy idea.

    What if you add to your delegate pointer to a shadow QWidget.
    Then you'll do all the custom layout in designer, and add resulting QWidget to your delegate.
    Then in paint event you apply necessary tweaks to the widget, and then render it using QWidget::render ()!

  2. The following user says thank you to lanz for this useful post:

    Adam Badura (20th February 2013)

Similar Threads

  1. QLabel as an item delegate
    By qlands in forum Qt Programming
    Replies: 13
    Last Post: 12th August 2011, 11:51
  2. Using model indices in complex model item relationships
    By hackerNovitiate in forum Newbie
    Replies: 0
    Last Post: 29th June 2011, 14:30
  3. Replies: 0
    Last Post: 10th March 2011, 11:44
  4. Replies: 5
    Last Post: 10th August 2009, 10:50
  5. Delegate for a certain item?
    By somebody in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2008, 22:55

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.