Results 1 to 2 of 2

Thread: How to keep window size proportional to the screen its appearing

  1. #1
    Join Date
    May 2009
    Posts
    83

    Default How to keep window size proportional to the screen its appearing

    How does Qt handle screen resolution and size to keep proportion between the Qt window
    and the screen size , for example when I set window size on my development pc

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to keep window size proportional to the screen its appearing

    I'm not sure I understand your question.

    Qt reports the resolution reported by the underlying operating system (see QDesktopWidget). Top level windows are given a default size based on their contents and size hints. You can explicitly set the size (QWidget::setGeometry()) or persist the window geometry (see QWidget::saveGeometry() or QWidget::saveState()) between runs.

Similar Threads

  1. proportional widget resize
    By momesana in forum Qt Programming
    Replies: 7
    Last Post: 15th December 2010, 03:22
  2. Image - screen size
    By ahmdsd_ostora in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2010, 15:29
  3. Replies: 4
    Last Post: 20th November 2009, 12:25
  4. screen size
    By eric in forum Qt Programming
    Replies: 2
    Last Post: 28th December 2007, 14:54
  5. how to get the screen size in qt2
    By pencilren in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2007, 03:47

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.