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

QtUiTools.QUiLoader crash with custom widget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.0
    • 1.1.0
    • PySide
    • Win7, Python 2.7

    Description

      I'm trying to create a QMainWindow in the Designer and load the ui file dynamically with QUiLoader in pyside 1.1.0. When I don't register any custom types it works, but obviously fails to create my derived class. I've attached a repro case that crashes both 1.1.0 and 1.1.1.

      When running the attached example I get the following output:

      [u'AnalogClock', u'CompositionRenderer', u'GradientEditor', u'GradientRendererEx
      ', u'MultiPageWidget', u'MyWidget', u'PathDeformRendererEx', u'PathStrokeRendere
      rEx', u'Phonon::SeekSlider', u'Phonon::VideoPlayer', u'Phonon::VolumeSlider', u'
      QAxWidget', u'QCalendarWidget', u'QCheckBox', u'QColumnView', u'QComboBox', u'QC
      ommandLinkButton', u'QDateEdit', u'QDateTimeEdit', u'QDeclarativeView', u'QDial'
      , u'QDialog', u'QDialogButtonBox', u'QDockWidget', u'QDoubleSpinBox', u'QFontCom
      boBox', u'QFrame', u'QGraphicsView', u'QGroupBox', u'QLCDNumber', u'QLabel', u'Q
      LineEdit', u'QListView', u'QListWidget', u'QMainWindow', u'QMdiArea', u'QMenu',
      u'QMenuBar', u'QPlainTextEdit', u'QProgressBar', u'QPushButton', u'QRadioButton'
      , u'QScrollArea', u'QScrollBar', u'QSlider', u'QSpinBox', u'QSplitter', u'QStack
      edWidget', u'QStatusBar', u'QTabWidget', u'QTableView', u'QTableWidget', u'QText
      Browser', u'QTextEdit', u'QTimeEdit', u'QToolBar', u'QToolBox', u'QToolButton',
      u'QTreeView', u'QTreeWidget', u'QWebView', u'QWidget', u'QWizard', u'QWizardPage
      ', u'QWorkspace', u'TicTacToe', u'WorldTimeClock', u'XFormRendererEx']
      <PySide.QtGui.QLabel object at 0x02C17210>
      *** crash ***
      

      Attachments

        1. crash.py
          0.4 kB
          Stefan
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            stefan_d Stefan
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes