Quantcast
Channel: Qt DevNet forums: Qt WebKit
Viewing all articles
Browse latest Browse all 542

Determining the device pixel density or scale factor

$
0
0
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!!

Viewing all articles
Browse latest Browse all 542

Trending Articles