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

Allow more container types by duck typing, as opposed to type checking

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.11.0
    • PySide
    • None
    • All

    Description

      UserList.setStringList(shared.userconfig["users"].keys())
      TypeError: 'PySide2.QtCore.QStringListModel.setStringList' called with wrong argument types:
      PySide2.QtCore.QStringListModel.setStringList(dict_keys)
      Supported signatures:
      PySide2.QtCore.QStringListModel.setStringList(QStringList)
      

      Aside from being unable to ever create a QStringList directly and hence the supported signature being wrong - this issue is about allowing objects with _iter_ or similar to work for these methods.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes