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. Menus not resizing to match changes to font size
Forum Updated to NodeBB v4.3 + New Features

Menus not resizing to match changes to font size

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k Views 2 Watching
  • 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.
  • Mark A. GreenM Offline
    Mark A. GreenM Offline
    Mark A. Green
    wrote on last edited by
    #1

    Hi, I've been searching for a while and cannot find a solution to my problem. Hopefully someone's been through this and can help:

    I have a Widgets app built with 5.6.0 for Windows. There is a QMenuBar and drop down QMenu objects from that. When I run the application, everything looks fine and the text all fits. However, if I change the system level DPI setting to increase the ratio to 200%, things go wrong. The font size is correctly changed to be 2x points larger, however, the menus do not resize to the new text size. The text becomes cramped, collides with neighboring text, or is clipped.

    A similar situation occurs in reverse. If I start the app with the system DPI at 200%, all the text looks fine and everything is scaled to fit. But when I switch back to 100%, the text all shrinks but the menus don't follow. The result is tiny text with lots of empty space around it.

    Anyone know how I can get the menus to resize to match the text.

    By the way, the same problem occurs in any dialog box and on any toolbars that show text, too. The font size changes, but the controls don't resize to match.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you already check the bug report system for that use case ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Mark A. GreenM Offline
        Mark A. GreenM Offline
        Mark A. Green
        wrote on last edited by
        #3

        Thanks @SGaist I had not looked there. I'm new to Qt and I did not know how to get to the bug DB. The link is much appreciated. Looks like there's a lot of issues with hi-DPI in there. so I'll have a look.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I'd recommend also checking the closed one, just in case it matches your own.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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