QT Designer Stylesheet Text shadow / outline

  • Hi,

    is there a way to create a shadow/outline effect for the text in a label?
    I tried text shadow and outline but it doesnt work.

    Thanks in advance.

  • I'm not completely sure you can do shadow with stylesheets alone as Qt doesn't support CSS3 as far as I know (would be awesome if it did). Have you checked QGraphicsEffect and QGraphicsDropShadowEffect for the label.

    I've never tried it myself but I think you would need two drop shadow effects, one without blur for the outline and then the shadow.

    If there's a more straightforward way hopefully someone will come along.

Log in to reply