3 ms·
Modern c++ does some things better than qt, others it is still worse. Just unique ptr is better than qt's parent-child object model (memory management only, par
by bluGill 1y ago
Modern c++ does some things better than qt, others it is still worse. Just unique ptr is better than qt's parent-child object model (memory management only, parent child is useful for other things)
- thegrim33 1y agoIt kind of drives me crazy trying to have a modern C++ codebase which uses smart pointers everywhere, yet every touch point with Qt involves manually allocating memory and passing the pointers into some magical Qt blackbox which hopefully frees the memory when appropriate.
- bluGill 1y agoMost of the time you don't need to do that as qt will work with smart pointers so long as you have create and destroy in the same order. But i agree is annoying. I brought this up with qt last time they visited (my company is one of their larger customers)