Hi,

How can I call a Qt public slot in the onTextChanged event of a QML-Text, that edits the source attribute of an QML-Image?

What I basically would like to know is how to express the following in QML:
Qt Code:
  1. QObject::connect(QML-Text, SIGNAL(onTextChanged()), SomeClass, SLOT(editSource());
To copy to clipboard, switch view to plain text mode 

The second challenge then would be to change the source attribute of the QML-Image.
What I figured out by now is, that there's some QDeclarativeEngine class, however I don't really get how to implement it. Isn't there just some simple way to change attributes like it's possible with ui-files?
Qt Code:
  1. ui->myLabel->setPixmap(pixmap);
To copy to clipboard, switch view to plain text mode 

Thanks in advance,
forty-two