Results 1 to 3 of 3

Thread: QtItemDelegate for progress bars

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation QtItemDelegate for progress bars

    hi,
    i have a delegate used to draw progress bars in a tree widget.My application as top level items as well as child items.The no.of these items will not be know at compile time. My delegate has the following issues:

    1. Draws an incomplete progress bar for top level items..i.e the bar has no boundaries..i can only see the left boundary..the remaining 3 sides of the rect are missing.

    2.does not draw progress bar for child items..the text however changes.

    The code is included as an attachment.i hope some one can point out where I'm going wrong.i guess it is option.rect that causing a problem but I'm not sure.

    thanks!!
    Attached Files Attached Files

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.