trayres wrote:It's a very nice feature to not have to free the objects you've created - I assume the Qt developers thought so as well, so they implemented it.
You are basically talking about a core language feature, so I still don't see why a GUI toolkit should be responsible for providing this functionality. However, you do get this feature from using smart pointers, which wxWidgets actually does include, but really only does so primarily for it's own use, but it is available for you to use as well. You don't need to use wxWidgets for it though because it's provided by C++11, and is also still available by incorporating the Boost C++ libraries on older compilers.
There's really no reason to arbitrarily add a dependency on wxObject (and thus wxWidgets itself) for all of your non-GUI code just for that one feature. It's really a terrible idea to encourage everyone to subclass everything on top of QObject for the same reason. Personally, I think it was a poor choice on Qt's part to even provide that, it discourages writing modular code, and makes it significantly harder to properly test in an efficient manner.