Results 1 to 2 of 2

Thread: Layouts Under Various DPI Settings

  1. #1
    Join Date
    Dec 2016
    Posts
    37
    Qt products
    Qt5
    Platforms
    Windows

    Default Layouts Under Various DPI Settings

    Hello. I've got a form with a bunch of vertical layouts that have horizontal layouts within each vertical layout with
    a label on the left, a horizontal spacer, followed by another label that has the data value that goes with the first label.
    It looks fine on a 150 DPI setting on a 4k display. When I change the DPI settings, one of the vertical layout's
    data items are no longer vertically aligned with each other, which they were under 150 DPI setting. The spacer is
    a fixed length spacer. Only one vertical layout seems to have this problem, the others are fine.

    I've tried a few things like checking the margins, but not getting anywhere.

    What could be going wrong?

    Thanks for any help.

    n

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Layouts Under Various DPI Settings

    If you want the labels to align in columns, use a grid layout.

    Forms with text + value are often realized with a QFormLayout though.

    Cheers,
    _

Similar Threads

  1. QScrollArea and layouts
    By jesse_mark in forum Newbie
    Replies: 5
    Last Post: 17th September 2013, 18:13
  2. Need Help with Layouts
    By baluk in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2010, 07:30
  3. Layouts
    By csvivek in forum Qt Tools
    Replies: 3
    Last Post: 7th May 2008, 07:22
  4. Layouts
    By Dumbledore in forum Qt Tools
    Replies: 1
    Last Post: 14th October 2007, 01:01
  5. Layouts - Name cant be set
    By manivannan_1984 in forum Qt Programming
    Replies: 1
    Last Post: 14th September 2006, 18:38

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.