Important: Please read the Qt Code of Conduct -

Custom URL scheme in QWidget stylesheets

  • I'd like to specify images for UI elements using stylesheets while providing a custom image loader, since the images themselves are stored in packages and are individually accessible via an API.

    And I was thinking about something like this:

    background-image: url(myscheme:/image/path);

    Does Qt support registering custom URL scheme handlers for QWidget stylesheet properties?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    AFAIK and based on the documentation, no it's not.

Log in to reply