Created
March 26, 2013 15:37
-
-
Save arajkumar/5246373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void paintEvent (QPaintEvent * event) | |
{ | |
qDebug()<<__PRETTY_FUNCTION__; | |
QPainter p1(this); | |
{ | |
QPainter p(this); | |
p.setCompositionMode(QPainter::CompositionMode_Clear); | |
p.fillRect(QRect(0,0,100,100),Qt::transparent); | |
} | |
p1.setCompositionMode(QPainter::CompositionMode_Clear); | |
p1.fillRect(QRect(0,0,100,100),Qt::transparent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment