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

[OS X] Web Engine renders initially at 1/2 size on Retina Displays

    XMLWordPrintable

Details

    • macOS
    • 7c5f2a9393a3fc77c0c5b2406332d57a37325183

    Description

      QWebEngineView renders its contents at half size when initially shown. If the content is refreshed (right click->Refresh), then HTML content renders at the full size of the widget.

      Note the issue is only reproducible on OS X Retina displays.

      The fancybrowser example can be used to reproduce the issue. Only replace the:

         url = QUrl("http://www.google.com/ncr");
      

      with the Test.html file attached here.

      What's also interesting is that the web engine view/page knows its correct size. For example, if you move the cursor around on the page that tracks mouse position, the correct position is reported by the javascript. If you create a html sprite to follow the cursor, the sprite appears in the 1/2 size rendered corner but correctly shows the mouse position in the full size view.

      This suggests that it is purely a rendering issue. The functionality of the
      page, including mouse position and events, is correct even though it is
      rendered incorrectly (until reloaded).

      Attachments

        1. fancybrowser.zip
          25 kB
        2. Test_after_reload.JPG
          Test_after_reload.JPG
          326 kB
        3. Test_intial_look.JPG
          Test_intial_look.JPG
          372 kB
        4. Test.html
          0.1 kB

        Issue Links

          Activity

            People

              alexandru.croitor Alexandru Croitor
              qtcomsupport Qt Support
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: