Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Copy a class into another with list of pointers

$
0
0
Hi, Suppose i have a class and i have defined it in stack. MyClass class; when i copy this class into another: class = anotherClass; will the pointers which i have defined it in the object will copy or not? I have a list of pointers in my class and i just want to copy my object into another object, so i want to copy list of pointers too. I want to for example if i delete these pointers from original class, then the copied don’t change. more infor: myClass is not type of QObject

Viewing all articles
Browse latest Browse all 13965

Trending Articles