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

QStyleOptionViewItem is missing minimal constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.11.2
    • Shiboken
    • None
    • Linux/X11

    Description

      Trying to use shiboken2 in my project I get following error:

       

      #error writeMinimalConstructorExpression: Could not find a minimal constructor for type 'const QStyleOptionViewItem &'. This will result in a compilation error.

       

      In the generated code:

      ::QStyleOptionViewItem cppArg1_local;
      #error writeMinimalConstructorExpression: Could not find a minimal constructor for type 'const QStyleOptionViewItem &'. This will result in a compilation error.
      ;
              ::QStyleOptionViewItem* cppArg1 = &cppArg1_local;
              if (Shiboken::Conversions::isImplicitConversion(reinterpret_cast<SbkObjectType *>(SbkPySide2_QtWidgetsTypes[SBK_QSTYLEOPTIONVIEWITEM_IDX]), pythonToCpp[1]))
                  pythonToCpp[1](pyArgs[1], &cppArg1_local);
              else
                  pythonToCpp[1](pyArgs[1], &cppArg1);

       

      So it looks like there is a constructor implementation for QStyleOptionViewItem* but not QStyleOptionViewItem&.

       

      Interestingly, I don't use the QStyleOptionViewItem directly in my code, I just include the 

      typesystem_widgets.xml

       

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            strahlex Alexander Rössler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes