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

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-03-04 21:11:37 +0200

Sailfish SDK: C++ and QML tutorial

Hello everyone,

I am trying to do my first steps with the sailfish sdk. I've gone trough the examples and I still can't really figure out how to get c++ and qml connected between each other. I have read and gone through what was posted here https://together.jolla.com/question/272/is-there-proper-c-qml-example/ but as I am newbie (I know c++, but never used Qt or QML so far) it is pretty hard to understand that stuff. Also when you look at http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#connecting-to-qml-signals, this all seems so simple but in the SDK I don't get that to work.

Until now I've always tried to open a new sailfish project, add an item (with signal to c++) to the firstpage.qml and try to talk with it via C++...basically the chapter "Connecting to QML Signals" from the QT website.

Is there any good developer resource or forum out there? I'll already heard from the sailfish-devel mailing list, which I probably will join soonly. Otherwise please add some good comments to the examples in the SDK or describe them on the Sailfish website. Especially there should be another example besides "signal.pro", showing how to incorporate c++ with qml in SilicaStyle Sailfish UI. I think that this could really make a difference for beginners and therefore encourage more to contribute to this project

Cheers Mika

Sailfish SDK: C++ and QML tutorialtutorial - a request

Hello everyone,

I am trying to do my first steps with the sailfish sdk. I've gone trough the examples and I still can't really figure out how to get c++ and qml connected between each other. I have read and gone through what was posted here https://together.jolla.com/question/272/is-there-proper-c-qml-example/ but as I am newbie (I know c++, but never used Qt or QML so far) it is pretty hard to understand that stuff. Also when you look at http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#connecting-to-qml-signals, this all seems so simple but in the SDK I don't get that to work.

Until now I've always tried to open a new sailfish project, add an item (with signal to c++) to the firstpage.qml and try to talk with it via C++...basically the chapter "Connecting to QML Signals" from the QT website.

Is there any good developer resource or forum out there? I'll already heard from the sailfish-devel mailing list, which I probably will join soonly. Otherwise please add some good comments to the examples in the SDK or describe them on the Sailfish website. Especially there should be another example besides "signal.pro", showing how to incorporate c++ with qml in SilicaStyle Sailfish UI. I think that this could really make a difference for beginners and therefore encourage more to contribute to this project

Cheers Mika

Sailfish SDK: Requesting well documented C++ and QML tutorial - a requesttutorial

Hello everyone,

I am trying to do my first steps with the sailfish sdk. I've gone trough the examples and I still can't really figure out how to get c++ and qml connected between each other. I have read and gone through what was posted here https://together.jolla.com/question/272/is-there-proper-c-qml-example/ but as I am newbie (I know c++, but never used Qt or QML so far) it is pretty hard to understand that stuff. Also when you look at http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#connecting-to-qml-signals, this all seems so simple but in the SDK I don't get that to work.

Until now I've always tried to open a new sailfish project, add an item (with signal to c++) to the firstpage.qml and try to talk with it via C++...basically the chapter "Connecting to QML Signals" from the QT website.

Is there any good developer resource or forum out there? I'll already heard from the sailfish-devel mailing list, which I probably will join soonly. Otherwise please add some good comments to the examples in the SDK or describe them on the Sailfish website. Especially there should be another example besides "signal.pro", showing how to incorporate c++ with qml in SilicaStyle Sailfish UI. I think that this could really make a difference for beginners and therefore encourage more to contribute to this project

Cheers Mika

Sailfish SDK: Requesting well documented C++ and QML tutorial

Hello everyone,

I am trying to do my first steps with the sailfish sdk. I've gone trough the examples and I still can't really figure out how to get c++ and qml connected between each other. I have read and gone through what was posted here https://together.jolla.com/question/272/is-there-proper-c-qml-example/ but as I am newbie (I know c++, but never used Qt or QML so far) it is pretty hard to understand that stuff. Also when you look at http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#connecting-to-qml-signals, this all seems so simple but in the SDK I don't get that to work.

Until now I've always tried to open a new sailfish project, add an item (with signal to c++) to the firstpage.qml and try to talk with it via C++...basically the chapter "Connecting to QML Signals" from the QT website.

Is there any good developer resource or forum out there? I'll already heard from the sailfish-devel mailing list, which I probably will join soonly. Otherwise please add some good comments to the examples in the SDK or describe them on the Sailfish website. Especially there should be another example besides "signal.pro", showing how to incorporate c++ with qml in SilicaStyle Sailfish UI. I think that this could really make a difference for beginners and therefore encourage more to contribute to this project

Cheers Mika