Hi Giuseppe > Do you have an implementation that you could push as a WIP on gerrit? Or at least post it here as a skeleton?
I propose to have something like this: parented_ptr<QMenu> m_pButtonMenu; ... m_pButtonMenu = make_parented<QMenu>(this); > Conversely, you shouldn't contribute under the CLA non-trivial implementations for which you don't have the rights...) That's clear. I am not requesting to adopt the GPL 2 Mixxx code into the Qt source. I like to demonstrate the issue and like to work on a new solution that integrates into the QT source code. > As far as I understand, parented_ptr would be a "smart" pointer that simply asserts that the managed object has a parent, and that's it? Yes. In addition it has a make_parented factory function that hides new(). > Does it do it just in the destructor or also in the other operations Only in the constructor. To have never a patented pointer to a non patented object. (You can trick it though) Best regards, Daniel >
-- Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
