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

the order a dict will change after emit as a signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.5.0
    • PySide
    • None
    • Windows. Python 3.11.2, 3.10.8
    • All

    Description

      I have a dict and use the signal to emit it. Such as:

      a={"Folder":{},"Table":{}, "Figure":{}}
      s=Signal(dict)
      s.connect(self.func)
      s.emit(a)
      
      // receive in other function.
      def func(self,obj):
          print(obj)

       The received dict will be {"Folder":{},"Figure":{}, "Data":{}}. 

      Attachments

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            wnight shaochuang LIu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: