[Qt-interest] remove all elements from a QPainterPath

Markus Franke Franke.M at sebakmt.com
Thu Mar 31 17:17:15 CEST 2011


Hi Stephen,

thanks for your reply. However, this solution doesn't work in my case. It 
gives a segmentation fault once clear() get's called.

Best regards,
Markus Franke


qt-interest-bounces+franke.m=sebakmt.com at qt.nokia.com schrieb am 
31.03.2011 15:51:56:

> In article 
> <OF3CD162E1.6EF3F42A-ONC1257864.0026ABC7-C1257864.00291B34 at sebakmt.com>,
>  Markus Franke <Franke.M at sebakmt.com> wrote:
> 
> > Dear Alex,
> > 
> > thanks for your reply. However, this is not really what I want to 
achieve.
> > 
> > I would like to inherit from QPainterPath and then clear the path from 

> > within a member function of this derived class.
> > 
> > Best regards,
> > Markus Franke
> 
> How about this?
> 
> class MyPath : public QPainterPath {
>    MyPath(const QPainterPath & copy) : QPainterPath(copy) {}
>    void clear() {
>       *this = QPainterPath();
>    }
> };
> 
> -- 
> Stephen Chu
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest



"Disclaimer: This message is intended only for the use of the individual 
or entity to
which it is addressed and may contain information which is privileged, 
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the 
intended recipient or the person
responsible for delivering the message to the intended recipient, you are 
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If 
you have received this 
communication in error, please notify the sender and destroy and delete 
any copies you may have
received."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110331/4c2f67f7/attachment.html 


More information about the Qt-interest-old mailing list