Results 1 to 1 of 1

Thread: Point to Pixel Calculation on all screen

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

    Default Point to Pixel Calculation on all screen

    I search on web the exact factor to convert Point units to Pixel
    and i found only confusion ...

    on attachment is a html file thats display a
    1000px and a 750pt and a 264.3mm floating layer
    all layer having the same distance also

    Firefox can display :-) , ( Imo forum dont allow html file as attachment xml make ok )
    if you dont see the layer save xml and rename to html


    can factor 1.3333333 work on all screen ?

    Qt Code:
    1. #define POINT_TO_PX(px) ((px)*1.3333333)
    2. #define PX_TO_POINT(px) ((px)/1.3333333)
    To copy to clipboard, switch view to plain text mode 
    Attached Files Attached Files

Similar Threads

  1. How to get color of pixel or point by QMouseEvent
    By Krishnacins in forum Newbie
    Replies: 4
    Last Post: 28th May 2006, 01:46
  2. How to convert pixel to point & vs
    By Krishnacins in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 16:39

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.