Preview your qml-material app under common mobile screen sizes with keyboard shortcuts
Have a look at FormatSwitcher.qml for available devices and keyboard shortcuts.
Within your app's project folder:
git submodule add https://github.com/maply/org-qtmob-material-formatswitcher lib/org/qtmob/material/formatswitcher
Commit to add the submodule's reference permanently to your repo.
When subsequently cloning your repo, just do:
git submodule init
git submodule update
Include the project into your app's .pro file:
include(lib/org/qtmob/material/formatswitcher/org_qtmob_material_formatswitcher.pri)
For autocompletion and syntax highlighting in Qt Creator, add the following to your app's .pro file:
QML_IMPORT_PATH += $$PWD/lib
import QtQuick 2.5
import Material 0.1
import org.qtmob.material.formatswitcher 1.0
ApplicationWindow {
id: app
FormatSwitcher{
win: app // pass window reference here
}
...
}