[PyKDE] sip wrapping QCanvasItem's rtti()

Frederick Polgardy Jr polgardy at bodacion.com
Tue Jan 14 23:47:00 GMT 2003


On Tuesday 14 January 2003 04:41 pm, Anthony Heading wrote:
> So this appears to be forcing a call to the base class version of the
> function, which seems rather inappropriate for an rtti() function...
>
> Should this not read:
>                 res = (QCanvasItem*)sipCpp -> rtti();

No it doesn't.  That's the whole point of a virtual function call.  rtti() 
is invoked on the actual object, it's not determined by the ptr class.

-- 
F R E D E R I C K   P O L G A R D Y   J R.
Bodacion Technologies
18-3 E Dundee Road - Suite 300 - Barrington, IL 60010
Phone: 847/842.9008 - Fax: 847/842-1731
Web: http://www.bodacion.com




More information about the PyQt mailing list