A while ago, I submitted a patch to expose QGraphicsWidget::getContentsMargins() to Python. During more extensive testing, I found that that patch was incorrect and needed to address the fact that QGraphicsLayoutItem::getContentsMargins() is virtual.
I have a patch that almost fixes up this case, but I have run into one problem.
The code that initializes pyargs doesn't seem to know that the four qreal*
arguments are removed, thus meaning that the Python method invocation will have
an empty argument tuple. The following is generated for
QGraphicsLayoutItem::getContentsMargins() and all its overrides:
Shiboken::AutoDecRef pyargs(Py_BuildValue("()",
));
That stray comma is, of course, a problem. This happens when using Shiboken
1.0.0 Beta 3. Is there a way to control that through the XML given to Shiboken,
or is this a bug in Shiboken?
Once this detail is resolved, I will create a bug that includes the patch
attached to this message.
-Patrick
--
Patrick L. Hartling
Senior Software Engineer, Priority 5
http://www.priority5.com/
The information transmitted in this communication is intended only for
the person or entity to which it is addressed and contains proprietary
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please destroy any copies, contact the sender
and delete the material from any computer.
getContentsMargins.patch
Description: Binary data
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
