Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Determining the device pixel density or scale factor
Forum Updated to NodeBB v4.3 + New Features

Determining the device pixel density or scale factor

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 878 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cool_techie
    wrote on last edited by
    #1

    I was working with responsive images in Webkit and I came across this 'deviceScaleFactor' attribute with determines the pixel density on the target device. I was unable to find out how does Webkit determine it, that is which functions does it use and where can I find them in the Source? All I was able to find was that it used a function 'page->deviceScaleFactor()' which somehow returned the scale factor but I was unable to find the exact function which actually computes the sale factor.

    Any help here would be highly appreciated!!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved