Results 1 to 12 of 12

Thread: How to display marquee animation of QProgressBar properly when using it in QTreeView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to display marquee animation of QProgressBar properly when using it in QTreeV

    Quote Originally Posted by Infinity View Post
    Is it possible to tell the QItemDelegate to call paint() more frequent?
    You can connect a timer's timeout() signal to the view's update slot() (possibly passing in the coordinates of the item containing the progress bar). But don't be suprised if CPU usage will go sky high.

    Is it possible to display an QProgressBar directly, instead of calling QApplication::style()->drawControl(...)?
    Yes but you will have to control its geometry yourself (including clipping and showing/hiding the widget). An alternative is to use setIndexWidget() but then the bar will not be tied to your model in any way.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Infinity (9th August 2013)

Similar Threads

  1. Replies: 11
    Last Post: 30th March 2015, 06:03
  2. Replies: 0
    Last Post: 15th April 2011, 19:04
  3. QProgressBar "crash" - doesn't work properly
    By metRo_ in forum Qt Programming
    Replies: 6
    Last Post: 23rd October 2010, 13:56
  4. Replies: 21
    Last Post: 20th October 2010, 13:25
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

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.