Alban Rochel wrote: > Hello all, > > Actually, this is one of the few days I am in contact, so: > - I must have misunderstood something about dynamic casts because I > believed that QtPLDriver* widget=(QtPLDriver*)(pls->dev) would have > created a "pure" QtPLDriver* object, and thus the member functions > called after this would have been e.g. QtPLDriver::drawLine rather than > e.g. QtRasterDevice::drawLine (no call of the virtual functions). This > was the meaning of my "cryptic comment". > - There is a simple and straightforward way to fix that without worrying > about RTTI or whatever (well, at least for that): just define > plD_whatever functions for every kind of driver, using simple C-casts.
I went ahead and implemented this fix for the extqt driver only as that is the driver that the PyQt4 bindings are using. If I ever figure out what the underlying issue is will try and clean up the ugliness I've added via this copy-paste approach. -Hazen ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel