Pyqt maya setMask refreshing issue

hi all

i have created a widget using both classes (QtGui.QMainWindow,QtGui.QWidget)

i masked it’s perticulare region using “setMask (self, QRegion)”

widget is masked perfectly,

i want to change masked region frequently,

whenever i change masked region, widget shows white portion sometime

not in masked region, but out of masked region

any idea?

thanks and regards
mossin

hi there

by hiding window and showing it again solved the problem,
but that isn’t proper solution

anybody has an idea how to fix refreshing issue
or m i missing some commands ?

thanks and regards
mossin