QWidget and background transparency
General and Desktop
1
Posts
1
Posters
390
Views
1
Watching
-
wrote on 10 Dec 2014, 13:42 last edited by
My constructor:
@
TestWidget::TestWidget(QWidget *parent): QWidget(parent)
{setStyleSheet("background: transparent;"); setAttribute(Qt::WA_TranslucentBackground,true); setWindowFlags(Qt::FramelessWindowHint); setAutoFillBackground(false); setAttribute(Qt::WidgetAttribute::WA_ContentsPropagated);
}
@And nothing works. Can you help me? Thanks in advance...
[Edited: Please use code tags “@@” – p3c0]
1/1