Hi
I think it's a bug (PythonQtClassWrapper.cpp)
if (typeSlots & PythonQt::Type_InplaceAdd) {
//II wrap->_base.as_number.nb_add = (binaryfunc)PythonQtInstanceWrapper_iadd; wrap->_base.as_number.nb_inplace_add = (binaryfunc)PythonQtInstanceWrapper_iadd; } if (typeSlots & PythonQt::Type_InplaceSubtract) { //II wrap->_base.as_number.nb_subtract = (binaryfunc)PythonQtInstanceWrapper_isub; wrap->_base.as_number.nb_inplace_subtract = (binaryfunc)PythonQtInstanceWrapper_isub; } if (typeSlots & PythonQt::Type_InplaceMultiply) { //II wrap->_base.as_number.nb_multiply = (binaryfunc)PythonQtInstanceWrapper_imul; wrap->_base.as_number.nb_inplace_multiply = (binaryfunc)PythonQtInstanceWrapper_imul; }
Thx
Yes, looks like a copy and paste bug, I will fix it on SVN trunk.
The following Qt classes seem to be affected by this bug (they are the only ones with inline add/subtract/multiply):
QWebElementCollection QItemSelection QMatrix4x4 QPainterPath QQuaternion QTransform QVector2D QVector3D QVector4D
Log in to post a comment.
Hi
I think it's a bug (PythonQtClassWrapper.cpp)
//II wrap->_base.as_number.nb_add = (binaryfunc)PythonQtInstanceWrapper_iadd;
wrap->_base.as_number.nb_inplace_add = (binaryfunc)PythonQtInstanceWrapper_iadd;
}
if (typeSlots & PythonQt::Type_InplaceSubtract) {
//II wrap->_base.as_number.nb_subtract = (binaryfunc)PythonQtInstanceWrapper_isub;
wrap->_base.as_number.nb_inplace_subtract = (binaryfunc)PythonQtInstanceWrapper_isub;
}
if (typeSlots & PythonQt::Type_InplaceMultiply) {
//II wrap->_base.as_number.nb_multiply = (binaryfunc)PythonQtInstanceWrapper_imul;
wrap->_base.as_number.nb_inplace_multiply = (binaryfunc)PythonQtInstanceWrapper_imul;
}
Thx
Yes, looks like a copy and paste bug, I will fix it on SVN trunk.
The following Qt classes seem to be affected by this bug (they are the only ones with inline add/subtract/multiply):
QWebElementCollection
QItemSelection
QMatrix4x4
QPainterPath
QQuaternion
QTransform
QVector2D
QVector3D
QVector4D