Results 1 to 4 of 4

Thread: Dialog sizes and different screen resolutions.

  1. #1
    Join Date
    Mar 2006
    Posts
    74
    Thanks
    1
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Dialog sizes and different screen resolutions.

    I normaly work on a machine with high resolution displays (1600x1200) to layout my dialogs in designer (3.3.4). The dialogs look fine when I run them on my desktop at full resolution but when I test them at lower resolutions such as 1280x1024 or 1024x768 they look horible.

    The problem is that the WM knows how to correctly scale the fonts when the resolution is changed but the dialog size is not scaled. The result is that the dialog is very large relative to the fonts sizes at these lower resolutions with lots of whitespace. If I manually resize the dialogs when running at lower resolution they look fine. Is there some way to make the dialogs automatically size themselves based on the actual displayed font size rather than defaulting to a fixed number of pixels in size?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Dialog sizes and different screen resolutions.

    If you use layouts and set proper sizeHint, dialogs should scale appropriately.

  3. #3
    Join Date
    Mar 2006
    Posts
    74
    Thanks
    1
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Dialog sizes and different screen resolutions.

    Spent some time working on the dialogs in designer. I was able to improve things considerably. I am still not totally satisfied but I think I am on the right track. Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Dialog sizes and different screen resolutions.

    If you showed us your dialog files, maybe we could help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.