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

Reg->6.6.0/Windows: QtWebView Designer plugin can cause startup hang (QUiLoader/Designer)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.6.0, 6.6.1, 6.6.2, 6.6.3
    • WebEngine
    • None
    • Python 3.11.5 and 3.12.0
      Windows 10.0.19045 (64bit)
    • Windows

    Description

      Hello,

      I try code from: https://doc.qt.io/qtforpython-6/tutorials/basictutorial/uifiles.html section 
      Option B: Loading it directly

      import sys
      from PySide6.QtUiTools import QUiLoader
      from PySide6.QtWidgets import QApplication
      from PySide6.QtCore import QFile, QIODevice
      
      if __name__ == "__main__":
          app = QApplication(sys.argv)
      
          ui_file_name = "mainwindow.ui"
          ui_file = QFile(ui_file_name)
          if not ui_file.open(QIODevice.ReadOnly):
              print(f"Cannot open {ui_file_name}: {ui_file.errorString()}")
              sys.exit(-1)
          print('before')
          loader = QUiLoader()
          print('after')
          window = loader.load(ui_file)
          ui_file.close()
          if not window:
              print(loader.errorString())
              sys.exit(-1)
          window.show()
      
          sys.exit(app.exec()) 

      Result is (I needed kill process):

      python.exe test.py 
      before
      
      Process finished with exit code -1 

      Pyside6==6.5.3 working as charm.

      Attachments

        1. DxDiag_1.txt
          102 kB
          Michał Plichta
        2. DxDiag_2.txt
          176 kB
          Michał Plichta
        3. image-2023-10-18-22-16-16-151.png
          175 kB
          Michał Plichta
        4. test_uiloader.zip
          1 kB
          Nicolas Arnaud-Cormos

        Issue Links

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

          Activity

            People

              michal Michal Klocek
              emc Michał Plichta
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes