문제

What is the point of having a GridLayout component, when there is a Grid component? From what I can tell, they seem to be doing the same thing.

도움이 되었습니까?

해결책

The components from the Layout module added in Qt 5.1 allow you for example to automatically resize your layout dynamically so if the user is able to resize the Window containing the given Layout it will grow/shrink properly. It also allows you to have certain elements fill the rest of the space in your Layout while others have fixed size.

You can read a bit more about Layout in the documentation and also see there is also RowLayout and ColumnLayout

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top