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

Window title bar not resizing correctly when using QT_SCALE_FACTOR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.13.2
    • GUI: High-DPI, QPA: Wayland
    • None
    • Distribution: Fedora 31
      Desktop environment: GNOME 3.34.5
    • Linux/Wayland

    Description

      Description:

      When running Qt5 applications in conjunction with QT_SCALE_FACTOR under GNOME, the width of the window title bar is not resized to match the scaled window content.

      Steps to reproduce:

      1. Open a terminal emulator
      2. Run:
        $ QT_SCALE_FACTOR=2 <name-of-qt5-application>

      Result:

      The content of the window is scaled appropriately, however the title bar width does not match the content width. You can see an example in the attached screenshot.

      Additional notes:

      I was able to reproduce this issue with several Qt5 applications, such as: MusicBrainz Picard, KeepassXC, qBittorrent. However, I could not reproduce it with (for example) VLC 3.0.9.

      Furthermore, someone suggested the following workaround, which indeed works (at least for me):

          $ QT_QPA_PLATFORM=xcb QT_SCALE_FACTOR=2 <name-of-qt5-application>

      Note: I am not sure if the component I selected is appropriate for this bug report, however since I am not involved in the project development I made my best guess. Please correct it if necessary.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            jirauser56485 user-aea3c (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes