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

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

      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

        1. qtbug70457.zip
          4 kB
        2. IssueWithScaling.mp4
          1.52 MB
        3. dockwidgets.zip
          15 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes