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

Icon for QLineEdit's action is painted with incorrect target rect, when attribute Qt::AA_UseHighDpiPixmaps is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0
    • 5.3.1
    • None
    • Apple MacBook Retina, OS X 10.9.4
    • b17365cda91a6ecc8d12e995d83f4ff479c59b5f (5.4 br, 3.9.2014, 5.4)

    Description

      I develop a software for Apple Mac OS X. I set attribute Qt::AA_UseHighDpiPixmaps, and add to resources a pair of images, search.png and search@2x.png (these are almost the same, for ordinary displays (size 16x16) and for retina-displays (size 32x32) accordingly). I add an action to QLineEdit with icon "search.png". QLineEdit's action is painted with incorrect target rect, which is beyond the boundaries of QLineEdit.

      This bug appears only on Apple Mac Retina display.

      See attached screen_shot.png.
      Minimal code is in leico.zip.

      Attachments

        1. leico_more_evident.zip
          8 kB
        2. leico.zip
          8 kB
        3. qtbug40525.zip
          9 kB
        4. screen_shot.png
          screen_shot.png
          28 kB
        5. screen_shots_more_evident.png
          screen_shots_more_evident.png
          135 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            eugene128 Eugene Malashkin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes