just try ..
use
void QPainter::setOpacity ( qreal opacity )
Qt Code:
in paintEvent() { painter->setOpacity(opacity); } in void TransparentWindow::setOpaque() { opacity = 0.2; update(); }To copy to clipboard, switch view to plain text mode
just try ..
use
void QPainter::setOpacity ( qreal opacity )
Qt Code:
in paintEvent() { painter->setOpacity(opacity); } in void TransparentWindow::setOpaque() { opacity = 0.2; update(); }To copy to clipboard, switch view to plain text mode
"Behind every great fortune lies a crime" - Balzac
Bookmarks