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

pyside6-metaobjectdump - custom decorators are not evaluated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.4.2
    • Build System
    • None
    • All

    Description

      metaobjectdump.py finds QmlElement, Slot, Property (and maybe others) by name It would be usefull if we could overrid the name.
      So if I wrap Pyside6.Slot i.e

       

      from PySide6.QtCore import Property, QObject
      
      def customproperty(fn, **kwargs):
          return Property(fn, **kwargs)
      
      class Foo(QObject):
          @customproperty
          def bar_prop():
              ...

      `bar_prop` would not be collected by `metaobjectdump` .

      A better approuch IMO would be to inspect the type information of the class members.

       

      Attachments

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            nir nir benlulu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: