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

QWebEnginePage contents size is resize slowly when the window is resizing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 Beta 3
    • 5.6.2, 5.7.1, 5.8.0 RC, 5.9.0
    • WebEngine
    • None
    • OS: macOS 10.12.2
       Qt: 5.7.1/5.8.0

      OS: Windows 10
      Qt: 5.9

    Description

      5.6.2 has no api to get page contentsSize, but it is the same result.

      when I double click the window title to zoom the window, the page contentSize only change at the last time (window zoomed completely). And there is no api to allow me to change the contentSize dynamic

      here is the result print in resizeEvent under 5.7.1
      WebView PyQt5.QtCore.QSize(904, 702) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(918, 708) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(986, 734) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1032, 752) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1089, 774) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1227, 828) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1305, 859) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1471, 924) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1630, 986) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1838, 1067) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1968, 1117) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)
      WebView PyQt5.QtCore.QSize(1998, 1129) Page ContentSize PyQt5.QtCore.QSizeF(900.0, 700.0)

      Attachments

        1. simplebrowser.zip
          128 kB
        2. qtwebengine_bug.png
          qtwebengine_bug.png
          106 kB

        Issue Links

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              luyuji 宇机 卢
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: