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

QItemFactory and userType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P3: Somewhat important
    • Resolution: Incomplete
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      All

      Description

      Hi,

      I am trying to create a custom editor for model/view pattern using QItemFactory.

      I don't know what to send to userType argument in createEditor(int userType, QWidget *parent). As the C++ documentation said, it should take a QVariant::Type. But How can I get theĀ  type without QVariant class ? You should switch userType from integer to a <class 'type'>

        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:
              sschutz sacha schutz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes