How to make application responsive when main window is resized by user?
-
I was wondering if there is a way to dynamically resize all widgets(labels, buttons, tables, combo boxes) and font size when the user drags the main window to resize it.
I have already managed to make widget size responsive by using Grid Layouts. But the Font size remains the same and widgets loose their size ratio after resizing.
-
I have already managed to make widget size responsive by using Grid Layouts.
But the Font size remains the sameUsing the Qt layout system all widget sizes will be recomputed as the relevant container changes size. This will not change font size. If the user is making a window containing text widgets (e.g. a text editor) bigger it is generally because they want to see more content. If the content, e.g. the text font, grew by the with the available space then the result would be the same amount of content (only more shouty).
widgets loose their size ratio after resizing
Not sure what you mean by this without a better description.