Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1209

Pyside2 WebEngine html-select very slowly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.14.0
    • PySide
    • None
    • Windows10. Python 3.7.1. PySide 5.14.0
    • Windows

    Description

      I am working with pyside2 5.14, using QWebEngine to render html GUI. Work is going under Windows 10.

      My main.py

      import sys
      
      from PySide2 import QtCore
      from PySide2.QtCore import *
      from PySide2.QtWebEngine import QtWebEngine
      from PySide2.QtWidgets import QApplication
      from PySide2.QtWebEngineWidgets import *
      
      QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
      QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts)
      
      QtWebEngine.initialize()
      
      app = QApplication(sys.argv)
      
      view = QWebEngineView()
      view.load(QUrl.fromLocalFile(QDir.current().filePath("index.html")))
      view.show()
      
      sys.exit(app.exec_())
      

      and index.html

      <!doctype html>
      <html lang="en">
      <head>
          <title>Document</title>
      </head>
      <body>
      <select>
          <option value="1">v1</option>
          <option value="2">v2</option>
      </select>
      </body>
      </html>
      

      Unfortunately I discovered some bug with select html-control. After second click on select, menu disappears for 2-3 sec and application blocks for that time. Has anyone solved a similar problem?

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            memclutter Anatoly Garkusha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes