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

Windows 10: Incorrect position of menu drop down when Qt HiDPI support is disabled at dpiawareness 1,0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.11.1
    • Widgets: Main Window
    • None
    • Windows 10x64, MSVC2017x64
    • Windows

    Description

      Menu in main window has incorrect possition and scaling after series of manipulation on Windows 10:
      1. You need to have 2 monitors connected with windows scaling on both 100%

      2. Change scaling of primary(first) screen to 125%

      3. Run project from attachment(dockwidgets.zip) and drag application to secondary(second) screen with scaling 100%. Note I added code to disable HiDPI and turn on Windows scaling:

      ...
      int main(int argc, char *argv[])
      {
          SetProcessDPIAware();
          QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
          QApplication app(argc, argv);
      ...

      4. Undock any of dock widgets and move it to Primary screen with scaling of 125%

      5. Click on any main menu item and observe incorrect menu position and scaling

      See video steps to reproduce here: IssueWithScaling.mp4

      Attachments

        1. dockwidgets.zip
          15 kB
        2. IssueWithScaling.mp4
          1.52 MB
        3. qtbug70457.zip
          4 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              AndriySlisarchuk Andriy Slisarchuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes