No, you should not do this. This is the definition of QObject :: children ():
inline const QObjectList &children() const { return d_ptr->children; }
This means that you directly get a link to an internal list of objects. And the documentation says:
Note that the order of the list changes when the QWidget Children is raised or lowered. The widget that is raised becomes the last object in the list, and the snapshot that is dropped becomes the first object in the list.
, .