05-27-2013 06:43 AM
I want to ask simple Question in bb10 cascade ...
First this is my logic to send data between 2 activities like android => every Activity has it own XML => just when I make intent and send data the other activity it show automatically in other XML
lets try to make this bb10 cascade
first I made 2 classes(.cpp) with 2 headers(.hpp) and 2 QML for them
frist.cpp => frist.qml
there is button in frist.qml call "show list"
when i click it ==>it call function in frist.cpp (access database and get list of Qvariant and i print it in consol . i sure this function work well) then i want to send this list to second.qml to show it
i did that i made a nativgationpane form frist.qml to second.qml
The Question here : How to send the list to show it
Please Support me with a simple example like send string between 2 qmls
05-27-2013 06:48 AM
05-27-2013 07:12 AM
please simon i read a few about signals and solts and it seem it deal in 1 (cpp/ qml) not between 2 qml
i asked 1 developer QT and said u should make keyword =>"connection"
i would be greatful if u provide me with simple example sending string between 2 qml using Cpp
hint : i am not like or agree with write logic code in Qml . i love to make it like Android design in xml and logic in java
05-27-2013 07:33 AM
05-27-2013 11:09 AM
I don't really follow the first part of your post but to pass simple strings between two QML files you can use this sample: http://bbcascadescode.tumblr.com/post/40740528163/