View Full Version : How can I use qt_dirtyRegion() ?

28th January 2009, 19:49

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!