Problem solved.
In fact paintEvent() was slow because of double-buffering, which is turned on by default in Qt4. All I had to do is to turn it off.
I used JPN's code and added the following line in the constructor of my main class (whiteboard)
After that there is no difference in performance between qt4 and qt3.Qt Code:
this->setAttribute(Qt::WA_PaintOnScreen);To copy to clipboard, switch view to plain text mode
Thanks for help,
Tomek




Reply With Quote


Bookmarks