When using the refresh() function, is it possible to only refresh part of the map canvas, instead of refreshing all of it?

I am using C++ but can use any code snippet even if it is in Python.

closed as off-topic by PolyGeo Aug 22 at 21:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • QgsMapCanvas inherit from qgraphicsview, and I think that isn't possible – Fran Raga Aug 22 at 18:13