We have moved to a new Sailfish OS Forum. Please start new discussions there.

No coveractions if QML code displayed with qmlscene (as QQuickWindow)

asked 2015-08-27 16:59:27 +0200

Nekron gravatar image

updated 2015-08-27 17:01:22 +0200

I know that this question might be better suited to sailfishos mailing list, however maybe someone run into the same problem and has a quick solution for me.

I am testing my QML files using qmlscene (/usr/lib/qt5/bin/qmlscene) on the emulator. While QML files are displayed correctly I have issues when the coverview is shown. I added CoverActions, but they do not show nor does stdErr print any information whats wrong. It is also not possible to swipe within the applications cover so I guess it has something to do with the compositor and how a silica application is initialized (Sailfishapp::application) versus a standard QT application (qmlscene in this case which renders as QQuickWindow).

As I do know that there is a silica stand-alone launcher to work with QML-only files, what "magic" do I have to use for standard QT applications that renders a qmlscene as QQuickWindow to work with cover actions?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted

answered 2015-08-28 17:08:25 +0200

Nekron gravatar image

The "magic" is to call SailfishApp::createView() and to use that view for further processing. I am not sure what is happening at that method, but w/out cover actions will be missing (if you create your own QQuickWindow).

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

1 follower


Asked: 2015-08-27 16:59:27 +0200

Seen: 375 times

Last updated: Aug 28 '15