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

Regression: QWebEngineView + WM_NCCALCSIZE + HighDPI screen painting failure

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.0 Beta 4
    • QPA: Windows, WebEngine
    • None
    • Laptop High DPI screen 4K resolution, Windows 10
    • Windows

    Description

      I have tested this issue using small application attached to bug https://bugreports.qt.io/browse/QTBUG-40578
      I just added few strings to MainWindow constructor to that app which makes this bug appear:

      QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
      ...
      QWebEngineView *w = new QWebEngineView(this);
      

      How to reproduce bug:

      • Use laptop 4K screen (200%-250% scale ratio in Windows settings)
      • Run app
      • Toggle F11 to switch app between frameless and non-frameless mode
      • You will see that the yellow app window painted incorrectly in frameless mode

      Then comment string above, and uncomment string //QWidget *w = new QWidget(this);
      Test again - and you will see that bug does not appear.

      Seems when webengine added to mainwindow, inner widgets painted with some offset equal titlebar height

      Test app - qtbug40578-new.zip
      Screen capture - 2018-11-14_21-32-29.mp4

      Attachments

        1. 2018-11-14_21-32-29.mp4
          1.32 MB
        2. 2018-11-15_14-48-34.mp4
          2.27 MB
        3. 2018-11-15_15-16-01.mp4
          4.51 MB
        4. diag_old_driver.txt
          8 kB
        5. qtbug40578-new.zip
          3 kB
        6. qtbug71808.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            pokamest Anton Bulychev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes