Details
Description
The method CppGenerator::generateClass in generator/shiboken/cppgenerator.cpp has the following code:
foreach (const AbstractMetaField* metaField, metaClass->fields()) { if (metaField->isStatic()) continue; writeGetterFunction(s, metaField); if (!metaField->type()->isConstant()) writeSetterFunction(s, metaField); s << endl; }
Because the setter is only generated if the field's type is not constant, fields declared as const SomeType* will not have setters generated. This is the case for QStyleOptionViewItemV3::widget, and thus further complicates PYSIDE-115, making it impossible to create a proper instance of QStyleOptionViewItemV4.
Attachments
Issue Links
- relates to
-
PYSIDE-672 shiboken: Refactor code handling C++ types
- Closed