Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to make application responsive when main window is resized by user?
Forum Updated to NodeBB v4.3 + New Features

How to make application responsive when main window is resized by user?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 537 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vin_234
    wrote on 27 Jun 2022, 04:04 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on 27 Jun 2022, 04:25 last edited by
      #2

      I have already managed to make widget size responsive by using Grid Layouts.
      But the Font size remains the same

      Using 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.

      1 Reply Last reply
      3

      1/2

      27 Jun 2022, 04:04

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved