Add support for QML mode.