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

TypeError: Can't call meta function because I have no idea how to handle QRemoteObjectSourceLocation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.7.0
    • 6.5.2
    • PySide
    • None
    • Windows
    • 3793031ed (dev), ac4214367 (6.6), 476f2235b (dev), 02838733a (dev)

    Description

      Connecting a slot to QRemoteObjectRegistry.remoteObjectAdded(const QRemoteObjectSourceLocation &entry) causes the following error:

      TypeError: Can't call meta function because I have no idea how to handle QRemoteObjectSourceLocation

      This is my code:

      self.m_Host = QRemoteObjectHost(QUrl('local:server'), QUrl('local:registry'),
                  QRemoteObjectHost.BuiltInSchemasOnly, self)
      self.m_Host.registry().remoteObjectAdded.connect(self.onRemoteObjectAdded)
      
      @Slot(tuple)
      def onRemoteObjectAdded(self, loc  : Tuple[str, PySide6.QtRemoteObjects.QRemoteObjectSourceLocationInfo]):
          print("onRemoteObjectAdded")
          return
      

       In C++ there is not problem connecting to the signal

      Attachments

        1. minmal_example.py
          2 kB
        2. pyside2633_diag.diff
          6 kB
        3. pyside2633_log.txt
          1 kB
        4. pyside2633.py
          2 kB
        For Gerrit Dashboard: PYSIDE-2633
        # Subject Branch Project Status CR V

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ukindler Uwe Kindler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews