Results 1 to 2 of 2

Thread: Make Widgets in Millimeter regardless of screen size, resolution

  1. #1
    Join Date
    Mar 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Make Widgets in Millimeter regardless of screen size, resolution

    I am trying to draw widgets of fixed size regardless of screen size, resolution, etc.

    For example, I want a button of size 22 millimeters x 18 millimeters on all screens, no matter the resolution etc.

    Any Ideas?

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Make Widgets in Millimeter regardless of screen size, resolution

    Quote Originally Posted by JACO View Post
    I am trying to draw widgets of fixed size regardless of screen size, resolution, etc.

    For example, I want a button of size 22 millimeters x 18 millimeters on all screens, no matter the resolution etc.

    Any Ideas?
    Read this...
    http://www.qtcentre.org/forum/f-qt-p...iew-12693.html

    Or make your own math

    Screen Res: 1024x768, Diagonal Size: 19", Pixel size: 0.377mm
    * Screen Res: 800x600, Diagonal Size: 17", Pixel size: 0.4318mm
    * Screen Res: 640x480, Diagonal Size: 15", Pixel size: 0.4763mm
    Algorythm for calculating 0.377mm pixel from 1024x768 19 inch screen" ???
    http://en.wikipedia.org/wiki/Pixel

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.