QSlider not showing over background image using stylesheet (RESOLVED)



  • QSlider has a PNG image for handle. Shows correctly. Don't need a groove image as
    QFrame, for entire workspace, has the artwork. I see a black rectangle with the handle
    over top of the background.

    Other children of the frame (groupboxes, labels, etc) are showing correctly.

    @#frame {
    background-image: url(:/qml/file_1.png);
    }@

    QSlider::add-page {
    color: rgba(0,0,0,0);
    }
    QSlider::sub-page {
    color: rgba(0,0,0,0);
    }
    QSlider::handle {
    image: url(:/qml/file_5.png);
    }
    QSlider::groove {
    background-color: rgba(0, 0, 0, 0);
    }

    What am I missing?

    EDIT: I forgot about centralWidget - Resolved



  • rgba(0, 0, 0, 0) should be written as rgba(0, 0, 0, 0%). However, it means full transparency which is probably not what you want.


Log in to reply
 

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