Hi,

I was wondering if anyone can explain how SIgnals and Slots work in QML.

I understand them in Qt.

So if I have 2 files.
A.qml

B.qml


I want A.qml to send a signal to B.qml

The signal I want A to send to B is a string.

//A.qml

Qt Code:
  1. Item
  2. {
  3. id: aItem
  4.  
  5.  
  6. signal sendStringSignal
  7.  
  8. Rectangle
  9. {
  10. onClicked: { //need to send a to B.qml }
  11.  
  12. }
  13.  
  14. }
To copy to clipboard, switch view to plain text mode 


I wasn't able to find code snippets of anyone doing this, any ideas?

Thanks