← Back to team overview

ubuntu-phone team mailing list archive

Re: Find out if running on a phone

 

>> 
>> But this requires an input to then find out what the source was (mouse,
>> touch screen, etc.).
> 
> It does not need an event first. QInputInfoManager::deviceMap() will give a list of devices. You can filter these by setting a filter first.

Ah, yes, right you are, thanks!

Hmmm, but what to look for to decide whether I’m running on touch or desktop? A lot of laptops have touch screens these days.

I suspect that the QInput API is simply the wrong API for my particular problem.

Michi.

Follow ups

References