QWidget and background transparency



  • 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]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.