Planned maintenance: From Sunday 8th December 10:00 CET there will be changes to try and solve the caching issues that have been experienced. If anyone has a problem connecting after this period then please PM @AndyS or any of the moderators.
Autosize children of a QFrame
McLion last edited by
I have a QFrame that contains some QLabel's.
The width of the frame is set variable based on the content of one of the labels - this works as expected.
The complete frame is animated instead of only shown and hidden, respecting the variable width - works as expected too.
Is there a way to automatically extend the width of all child labels of the frame to the same, i.e. the current size the frame gets?
I know I can set this with some lines of codes manually. However, if there is a functionality in Qt that can di this that would be the nicer solution.
@McLion You can use layouts for those labels