06-27-2012 03:56 AM
Hi,
I'm trying to use the QML "Connections" element. So far without luck.
Attempt 1:
import bb.cascades 1.0
Page {
content: Container {
Label {
text: "Hi"
}
}
Connections {
}
}
This yields: "Connections is not a type".
Fair enough, I added an import...
Attempt 2:
import Qt 4.7
import bb.cascades 1.0
Page {
content: Container {
Label {
text: "Hi"
}
}
Connections {
}
}
This yields: "Cannot assign to non-existent default property"
Attempt 3:
Moved the Connections element into the Container.
This yields: "Cannot assign object to list"
What am I doing wrong?
Thanks,
Jamie
Solved! Go to Solution.
06-27-2012 08:47 AM
06-27-2012 04:05 PM
I have no idea if it is part of Qtquick. I thought it was part of basic QML as I read about it here: http://doc.qt.nokia.com/4.7-snapshot/qml-connectio
Thanks,
Jamie
06-27-2012 04:10 PM
06-27-2012 04:41 PM
Thank you!
Your explanation is extremely helpful.
Cheers,
Jamie
11-30-2012 02:36 PM
Turns out I was wrong about this, and it's only the visual elements (basically) which cannot be mixed with Cascades. The Connections class is still available, as noted here http://supportforums.blackberry.com/t5/Cascades-De
11-30-2012 03:52 PM
Hi Peter,
Thanks for taking the time to update this thread.
To be honest, I can't remember what I wanted to use this for. :-)
Perhaps in the future this will come in handy...
Cheers,
Jamie
12-29-2012 10:59 AM
I would like to know how to do this. The use would be if you have a ControlDelegate sending a signal to which you want to connect.
There are no examples available of how to do this.
I tried import QtQuick 1.0 but I still get the same errors as described above.
12-29-2012 11:32 AM - edited 12-29-2012 11:33 AM
Right, this does work in cascades..
12-30-2012 03:16 AM - edited 12-30-2012 03:16 AM
Hi geoidesic and peter9477,
Thanks your wonderful sharing about this 'Connections' topic, I have been looking for a way to send a signal from C++ to QML for two days. tried and tried, almost gave up.
Now I back to the correct track. Those QtQuick/Cascades difference are really confussing sometime.