Results 1 to 6 of 6

Thread: PyQt, Custom delegate for html format text causes jittery refreshing [GIF included]

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: PyQt, Custom delegate for html format text causes jittery refreshing [GIF include

    Try setting the clipping rectangle on the QPaintContext rather than the painter. You may find the layout engine can make a smarter choice of how to paint.

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

    DoTheEvo (6th April 2015)

  3. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: PyQt, Custom delegate for html format text causes jittery refreshing [GIF include

    Another potential slow down can be save/restore on a painter.
    It is often faster to just "undo" the changes, e.g. translate back to "undo" the translation.

    Cheers,
    _

  4. The following user says thank you to anda_skoa for this useful post:

    DoTheEvo (6th April 2015)

  5. #3
    Join Date
    Apr 2015
    Posts
    20
    Thanks
    7
    Qt products
    Platforms
    Unix/X11

    Default Re: PyQt, Custom delegate for html format text causes jittery refreshing [GIF include

    THANK YOU ALL FOR REPLYING!

    It was my bad at the very beginning
    I was doing setItemDelegate() on every keypress instead of just putting it there right after creating the listview

    All is well


Similar Threads

  1. Refreshing a Custom QwtScaleDraw
    By grantbj74 in forum Qwt
    Replies: 6
    Last Post: 28th March 2012, 05:20
  2. Replies: 1
    Last Post: 6th December 2011, 22:44
  3. Custom Delegate and Text Wrap
    By enlightened_j in forum Newbie
    Replies: 2
    Last Post: 17th September 2010, 06:21
  4. Threaded refreshing of a TreeView with custom model
    By CLRS530 in forum Qt Programming
    Replies: 4
    Last Post: 25th August 2009, 08:23
  5. Displaying picture included with html code
    By Djony in forum Qt Tools
    Replies: 1
    Last Post: 27th November 2006, 16:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.