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

[macOS]Calling winId() renders additional undesired pixmap if scaling factor is not 1

    XMLWordPrintable

Details

    • macOS
    • 270866923 (dev), 7229cc75a (6.8), a70f37ebf (6.7), d4beb9c57 (tqtc/lts-6.5), 4966566cd (tqtc/lts-6.2)

    Description

      Reproducer attached.

      qputenv("QT_SCALE_FACTOR", "2"); //Or whatever value != 1, e.g. 1.5, etc.. 
      

      is used to test scale factors. And inside Widget constructor

      label->winId();
      

      is called without any further handling. Simply calling that method is enough to reproduce the issue. The result is an unexpected 1x pixmap being rendered on top of the 2x one. Commenting out the winId() line, only 2x pixmap is rendered.

      Also tested on Windows - not reproducible. So seems to be a macOS issue.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: