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. ** Changed in: qtubuntu (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to qtubuntu in Ubuntu. https://bugs.launchpad.net/bugs/1534682 Title: Not requesting desktop content when connected to monitor Status in Canonical System Image: In Progress Status in Canonical Pocket Desktop: In Progress Status in qtubuntu package in Ubuntu: Fix Released Status in webbrowser-app package in Ubuntu: Invalid Bug description: The ua string is supposed to change based on screensize and other hueristics, but this is not happening. Getting mobile ua string always, even when connected to monitor via slimport using this build: (r112) ubuntu-device-flash touch --channel=ubuntu-touch/rc-proposed/ubuntu-pd Not seeing any messages in the browser log when I plug/unplug the monitor To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1534682/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp