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

QMainWindow::size returns wrong size with windows scaling enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Windows 10 x64 build 17763

      QMainWindow::size returns wrong size depending on selected windows display scaling.
      In attached untitled project after resizing main window to 800x600, size is 800x600 with 100% display scaling, 798x592 with 125%, 794x583 with 150% and 792x575 with 175%.

      In our project based on Qt for certain targets we depend on this value while rendering opengl view so as result we get black lines in the bottom left corner of the window.

      dpiawarness=0 fixes this problem but whole UI become blurry so it's not a solution.

        Attachments

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

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              stanislav.podolia stanislav.podolia
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes