Comment 6 for bug 1534682

Revision history for this message
Gerry Boland (gerboland) wrote :

Yep, as of now, you can fetch the shell mode by using the QPlatformNativeInterface::windowProperty api to fetch a "formFactor" property which will return an enum (look in mir for the enum interpretation) indicating what mode the shell is in. Connect to windowPropertyChanged for signal on change.

This is an intermediary means of accessing this info, and it is clunky. The UITK needs to grow a proper API for this. Lemme know if you need a hand.