How to use dirtyrect by QT5?
I am using qt5 to development a cluster demo，but the fps is very low on imx6q,only 30.
So,is there anyway to advance the fps,like dirtyrect?
Could we use dirtyrect by QT5?
@DongSen What is dirtyrect?
Also, to get meaningful answer you need to provide more information:
- Qt version
- Better explanation of what you app is actually doing
- Maybe some code where you get bad performance
This post is deleted!
@jsulm Thank you for reply:
The dirtyrect means that I just want to redraw some parts of the screen,the other parts of screen,I hope it to keep the last frame.
The version of Qt is 5.12.3.
I have a automotive cluster demo,I want to redraw the pointer continuously,and only redraw the other parts when something else changed.
@DongSen You can draw in a pixmap (see https://stackoverflow.com/questions/17888795/how-to-use-qpainter-on-qpixmap) and then draw this pixmap on your widget. Then you can just change what needs to be changed in the pixmap keeping unchanged parts.