On Thu, 16 Dec 2010 21:21:39 +0000
<[email protected]> wrote:

> >
> >Hopefully you add resolition and size there.
> 
> Indeed. In the meantime, one could use:
> 
> QDesktopWidget.screen(0).
> To get the QPaintDevice stuff for the desktop widget.
> 
> Not very intuitive, but it's there.

It's there, but not all that accurate (Qt documentation says so). On
machines that I have tried, things like widthMM() are wrong by up to
25%. I recall someone trying it on Maemo, where it was a lot worse. So while 
this can
probably distinguish a handheld device from a theater display, it falls
into the category of "guessing". 

-- 
Bernd Stramm
[email protected]

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to