[Qt-interest] remove all elements from a QPainterPath

Malyushytsky, Alex alex at wai.com
Wed Mar 30 22:25:01 CEST 2011


I guess assignment operator should  do the job:

QPainterPath a;
......
a  = QPainterPath();

Alex




From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Markus Franke
Sent: Wednesday, March 30, 2011 5:50 AM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] remove all elements from a QPainterPath


Dear all,

is there any reason why it is not possible to remove all elements from a QPainterPath?

I know that it would be possible to reconstruct an empty QPainterPath and assign it to the old one.

However in case I inherit QPainterPath and want to remove all elements from within a member function, I think there should be at least a protected member function like QPainterPath::clear() or so which one could use.

Thanks for any comments on this,
Markus Franke


"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."


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110330/90403793/attachment.html 


More information about the Qt-interest-old mailing list