<div dir="ltr"><div><div>Hi guys,<br><br></div>I'm doing a game that requires to lock the system gestures (it's a game for babies, so I have to lock the swipe to avoid the baby from surfing all around the phone :) )<br>
<br></div>According to <a href="https://sailfishos.org/wiki/Porting/Harmattan">https://sailfishos.org/wiki/Porting/Harmattan</a> it must be done through Qt::WindowOverridesSystemGestures, which I guess must be set on the main window. What I've done is:<br>
<br> QGuiApplication *app = SailfishApp::application(argc, argv);<br> QQuickView *view = SailfishApp::createView();<br><div><div> view->setSource(SailfishApp::pathTo("qml/myGame.qml"));<br> view->showFullScreen();<br>
<br> view->setFlags(view->flags() | Qt::WindowOverridesSystemGestures);<br><br> return app->exec();<br><br></div><div>But I can still swipe the app away in the emulator.<br><br><div>What am I doing wrong?<br>
<br>Thanks a lot, regards...<br><br></div><div><br clear="all"><div><div>...Mariano Boragno...</div>
</div></div></div></div></div>