Set size of the a window according to its items
-
Hi there,
I have a window dialog and with a fixed size, but I would like to define the size in function of the space that each item takes in it. How can I do that?
Thanks!
-
Hi,
From setFixedSize's documentation:
if you want the widget to have a fixed size based on its contents, you can call QLayout::setSizeConstraint(QLayout::SetFixedSize);
Hope it helps
-
Can I do that from qml??
-
Sorry, my bad, i didn't notice the sub-forum of the question. I currently can't tell from a qml point of view.