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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Python 3.8.1, Windows 10 x64, PySide2 5.14.1
    • Platform/s:
      Windows

      Description

      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.

       

       

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes