Replies: 1 comment 2 replies
-
In a QWidget layout or a QML In contrast, Slint provides an easy way to make a widget conditional. See this adjusted example code. That said, this changes the behavior, since when the condition changes, it will reset the state of the widget and its children (in case there are any properties). It also makes it so that you can't refer to this widget or its children from outside the conditional block. But I do think it makes it less obvious, what the behavior should be for invisible widgets. In HTML/CSS, the solution is to not have a boolean "visible" but a "visibility" enum, so it can be set to "visible", "hidden" or "collapse" as desired (and then there is the "display" enum as well of course...). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When element is not visible in Horizontal/Vertical Laout, its space should fill other elements.
Not 100% sure, but I think that this is default GTK and QT behavior - CODE
simplescreenrecorder-2023-11-27_22.39.14.mp4
Beta Was this translation helpful? Give feedback.
All reactions