Skip to content

Instantly share code, notes, and snippets.

@arajkumar
Created March 26, 2013 15:37
Show Gist options
  • Save arajkumar/5246373 to your computer and use it in GitHub Desktop.
Save arajkumar/5246373 to your computer and use it in GitHub Desktop.
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