Il 22/02/19 19:04, René J.V. Bertin ha scritto:
I am not 100% sure, it's been a while, but I would assume that the layout is not the true parent, combined is.The docs aren't exactly clear on this subject, at least not with the sort of reading glasses I usually have on when I don't exactly want to be reading them ;)
Widgets can only have other widgets as parents.When you add a widget to a layout, the layout will reparent that widget to the widget the layout is installed onto.
https://doc.qt.io/qt-5/layout.html#tips-for-using-layouts
HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest