Results 1 to 1 of 1

Thread: How can I use qt_dirtyRegion() ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default How can I use qt_dirtyRegion() ?

    Hi!

    I'm painting widgets in delegate's paint() method using QWidget::render(). I made them working as a normal widgets (presenting my model data) using WA_DontShowOnScreen, editorEvent() and eventFilter() installed on them and catching UpdateRequest. It works fine, but there's a problem with Vista's blinking progress bars. They're killing my dual core processor, because every animation frame equals repainting whole view item = whole widget containing progressbar, 2 buttons, slider, font combo box and line edit. I found that there's some function like qt_dirtyRegion() defined in qwidget.cpp, but I don't how to use it, and even if that finction will be helpful in my case. Any suggestions?

    Thanks in advance!
    Last edited by faldzip; 28th January 2009 at 21:18.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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.