diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/customwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/customwidget.cpp b/plugins/customwidget.cpp index c752de589..fb849f20a 100644 --- a/plugins/customwidget.cpp +++ b/plugins/customwidget.cpp @@ -119,7 +119,7 @@ QWidget* PyCustomWidget::createWidget(QWidget* parent) else Shiboken::Object::setParent(pyParent, reinterpret_cast<PyObject*>(result)); - widget = reinterpret_cast<QWidget*>(Shiboken::Object::cppPointer(result, result->ob_type)); + widget = reinterpret_cast<QWidget*>(Shiboken::Object::cppPointer(result, Py_TYPE(result))); } return widget; |