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

Setting window size in Qml is not scaled correctly on Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 5.15.4, 6.0.0 RC
    • 5.15.0
    • QPA: Wayland
    • None
    • Ubuntu 20.10 Wayland
    • Linux/Wayland
    • 8cb1b07aea12d50b4fecc45c903705dfd368022a (qt/qtwayland/dev) 10005185e06857ce119c50fe710f9eedde06ec5e (qt/qtwayland/5.15)

    Description

      At first the window is not created.

      I set the size of the ApplicationWindow in Qml. This size is scaled by QHighDpi::toNativePixes(). But due to that the window does not exist, this resize has no effect.

      Then when applyConfigure(), the size is restored to original size.

      Then when the rendering thread starts to run, the window is created with the original size, not the scaled size.

      Attachments

        For Gerrit Dashboard: QTBUG-88064
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            xuzhongxing Zhongxing Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes