Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36825

StyleSheet background property not correctly work on retina display

    XMLWordPrintable

Details

    • d7e274a44621a4c1bb1ede66c00ee1d1e3f7bd13 (qt/qtbase/5.12)

    Description

      A have two pictures in my resources:

      :/images/logo_small.png
      :/images/logo_small@2x.png

      When I define background property on widget:

      #widget2{
      background-image: url(":/images/logo_small.png");
      }
      

      On retina display small image with no antialias drawn. In this situation will be drawn logo_small@2x.png image.

      When I define image as icon all works fine. This bug appear only on stylesheets.
      Example project in attachment.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            mcoder Konstantin
            Votes:
            22 Vote for this issue
            Watchers:
            31 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes