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

QItemFactory and userType

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.12.3
    • PySide
    • None
    • 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

            crmaurei Cristian Maureira-Fredes
            sschutz sacha schutz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes