SOlution to fix ur bug:
I guess u r trying to use the constructor
QRegion ( int x,
int y,
int w,
int h, RegionType t
= Rectangle
)
QRegion ( int x, int y, int w, int h, RegionType t = Rectangle )
To copy to clipboard, switch view to plain text mode
For that in the constructor
1.
//in constructor
2.
3.
//in a slot
4.
repaint((const QRegion)r1
) // error thrown here; 5.
1.
//in constructor
2.
r1=QRegion ((x,y,w,h,QRegion::Ellipse);
3.
//in a slot
4.
repaint((const QRegion)r1) // error thrown here;
5.
To copy to clipboard, switch view to plain text mode
try out this
Bookmarks