D
D
Denis Popov2015-10-06 14:09:28
Programming
Denis Popov, 2015-10-06 14:09:28

QT5 How to pass string from qml to cpp?

You can have a working example of code on how to transfer data from qml to cpp and vice versa. Well, for example, get the text from the input field, write it to a file, read it from the file and place it in the label. I'm trying to figure out the basics of programming under Sailfish OS, there's really no documentation...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TriKrista, 2015-10-06
@TriKrista

doc.qt.io/qt-5/qtqml-cppintegration-exposecppattri...

J
Jacob E, 2015-10-06
@Zifix

It's easiest to pass using Q_PROPERTY: here's an example .
Documentation was not enough about two years ago, now it is quite enough -  tyts - tyts .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question