[PyKDE] QCanvas Items: solved

Karl myonlyb at vollbio.de
Mon May 31 15:26:01 BST 2004


Hi!

We solved the problem with the QCanvas Items.

The problem was, that we used the QCanvasRectangle.rtti()-method to 
identify the class because we thought, that was what rtti() was meant for. 
(And it definitely worked under Qt 2.x, whyever), the rtti()-method is 
marked as virtual, I understood this the way, I *had to* reimplement it in 
an child-class.
So, when our ClassId returned e.g. 6, Qt identified the item as QCanvasEllipse.

Tnx anyway for your help!!!!

  Karl





More information about the PyQt mailing list