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

QObject does not support cooperative multiple inheritance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.0
    • 5.15.2
    • PySide
    • None
    • All
    • 559935482 (dev), 665d01d76 (dev), 0d279fef5 (6.4), 7f0897c59 (6.4), 52e388858 (dev), b2f6e1b26 (6.4), f668df2e2 (dev), 992f782db (dev), fbcf3fbaf (6.4), e8095467f (dev), 9637e7cc5 (dev), fddc822d6 (dev)

    Description

      Apparently QObject __init__ method does not call super to allow cooperative multiple inheritance as suggested in https://rhettinger.wordpress.com/2011/05/26/super-considered-super/

      The script attached allows to reproduce the problem and it works with PyQt5.

      I am not 100% sure whether this is a bug or intended behavior.

      Attachments

        1. multiple_inheritance.py
          0.4 kB
        2. pyside1564.py
          0.9 kB

        Issue Links

          For Gerrit Dashboard: PYSIDE-1564
          # Subject Branch Project Status CR V

          Activity

            People

              ctismer Christian Tismer
              micheles Michele Sardo
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: