Hello everyone!
I know QObjects doesn't support copy constructors but how can i create a copy of a QObject.
I want to make changes to the object while still maintaining the original copy.
Thanks
capton
0
Newbie Poster
Recommended Answers
Jump to PostChange your code so that you don't fight the design of Qt. QObjects are non-copyable by design, and that was an explicit choice, so making it happen will be inherently awkward and brittle.
How about instead of keeping a copy, which I assume is because you want to have a …
All 3 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
capton
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.