Hello,
I am trying to get rid of the half-transparent fill of the QRubberBand widget. I just want it transparent.
What I already tried:
p.
setColor(QPalette::Background, Qt
::transparent);
_rubberBand->setPalette(p);
QPalette p = _rubberBand->palette();
p.setColor(QPalette::Background, Qt::transparent);
_rubberBand->setPalette(p);
To copy to clipboard, switch view to plain text mode
and
_rubberBand->setStyleSheet("background-color: rgba(0,0,0,0)");
_rubberBand->setStyleSheet("background-color: rgba(0,0,0,0)");
To copy to clipboard, switch view to plain text mode
and
_rubberBand->setPalette(Qt::transparent);
_rubberBand->setAttribute(Qt::WA_NoSystemBackground);
_rubberBand->setAttribute(Qt::WA_TranslucentBackground);
_rubberBand->setAttribute(Qt::WA_TransparentForMouseEvents);
_rubberBand->setPalette(Qt::transparent);
_rubberBand->setAttribute(Qt::WA_NoSystemBackground);
_rubberBand->setAttribute(Qt::WA_TranslucentBackground);
_rubberBand->setAttribute(Qt::WA_TransparentForMouseEvents);
To copy to clipboard, switch view to plain text mode
but there is no effect at all. The rectangle is always rendered the same way (see attachment)...
How can I fix this?
Thank you in advance.
Bookmarks