Re: not showing DotLine in a for loop setting Samples with Qvector
Originally Posted by Alex22
Advantages of setRawSamples to setSamples is: in setRawSamples there is no copy and it uses the passing addresses of "x" and "y" but in setSamples there is a deep copy (even we can delete and free memory after deep copy). am I right?
No QVector ( like all Qt containers ) is implicitly shared. But I'm not going to explain this any further - Qt documentation does it better than I could do.
Uwe
PS: this forum is related to Qwt, please use the Newbie section, when having Qt/C++ beginner questions
Bookmarks