QScrollArea problem with stylesheet



  • Hello, good day,

    I'm struggling with the ScrollArea and going very badly,

    I have a QScrollArea, and inside a QFrame, I would like to put a fixed background image to the scrollarea but I can't,

    the style of the QFrame is this:
    @
    QFrame#frmCentral
    {
    background-color: rgba (255, 255, 255, 0); / * background-color: transparent; Neither walked * /
    border-top: 0px solid rgb (255, 255, 255);
    border-bottom: 0px solid rgb(255, 255, 255);
    }
    @

    and the QScrollArea has this style:

    @
    QScrollArea
    {
    background-color: white;
    border: transparent rgb(255, 255, 255) 0px;
    background-image: url(:/imagenes/fondo_central.png);
    background-attachment: fixed;
    }
    @

    in the mainWindow.cpp I have this:
    @
    ui->frmCentral->setAttribute(Qt::WA_TranslucentBackground);
    @

    but the background is not visible, what am I doing wrong?

    Thanks a lot


Log in to reply
 

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