Those of you following QtWayland development closely might have seen commit 7ef5e2e4 – Implement high-dpi support . In this blog we’ll look at some examples and show how to test the support on high and normal dpi hardware. Wayland Wayland 1.2 added support for high-dpi scaling via wl_output::scale wl_surface::set_buffer_scale wl_output::scale is used by the compositor to inform the client that it will scale buffers by the given scale factor (presumably because it is compositing to a high resolution display). The client then has the option of providing high resolution buffers and bypass the compositor scaling. This is done by calling set_buffer_scale (and then actually creating larger buffers). Typical values for the scale factor is 1 and 2; Wayland supports integer factors only. From he client point of view the buffer sizes are the only thing that changes with the scale factor, other wl_surface geometry is not multiplied by it. Qt Creating larger buffers and rendering high-dpi conte...
Clear, reliable information about Qt for developers and product teams, covering what it is, how it's work, and how to choose the right tools.