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

Frameless window shows wrong size and view region when being dragged back and forth between 2 monitors with 100% scale and other scale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.5, 6.6.0 Beta3, 6.6.0 RC
    • None
    • Windows

    Description

      If setWindowFlag(Qt::FramelessWindowHint).  

      The UI shows wrong scale and position when dragging the window back and forth between displays with different scaling settings.

      Reproduction can be performed based on the example ”Qt\Examples\Qt-x.x.x\widgets\layouts\basiclayouts“.

      step1: Add this->setWindowFlag(Qt::FramelessWindowHint); to Dialog::Dialog();

      step2: Add individual drag functions. (to be able to drag with Qt::FramelessWindowHint);

      step3: Run and drag the widget repeatedly between 2 monitors with one 100% scale settings, the other not 100%.

      Then the APP will display various strange distortions, as shown in the screenshot I took.

      The modified project for test has been added as an attachment.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            liziqi liziqi
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes