by the way i also tried the repaint() slot ,i know it is not useful in my case but i just got an error,the declaration is as follows in my
.h file
Qt Code:
To copy to clipboard, switch view to plain text mode 
.cpp
Qt Code:
  1. //in constructor
  2. r1(x,y,w,h,QRegion::Ellipse);
  3. //in a slot
  4. repaint(r1) // error thrown here;
To copy to clipboard, switch view to plain text mode