[Interest] Taking back a widget from a QBoxLayout?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Feb 22 20:27:05 CET 2019


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.dangelo at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190222/40f808b0/attachment.bin>


More information about the Interest mailing list