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

Property with type python list doesn't work with QDataWidgetMapper

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.15.1
    • 5.14.1
    • PySide
    • None
    • Python 3.8.1, Windows 10 x64, PySide2 5.14.1
    • Windows

      Defining a user property with a python list as the type doesn't work with QDataWidgetMapper. 

      it doesn't even call the setter method.

       

      it works with PyQt5 and after some searching i found that it works with PySide2 if the Property is defined with "QVariantList" instead but that's not pythonic.

      More strangely; it will work if i change the model data method to return a tuple instead of a list !!!

       

      I've attached a file to reproduce the issue.

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            mah.emad Mahmoud Emad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes