[Qt-qml] Calling slots with binding
Cristian Daniel Stamateanu
cristi.qt at gmail.com
Tue Jun 29 16:58:44 CEST 2010
Hello,
I have the following problem : I have a class declaring the following slot:
void RssFeedManager::addFeedEx(const QScriptValue & name,const
QScriptValue & address )
{
bool nameIsString = name.isVariant();
QString str = name.toString();
...
}
and I am calling this slot from QML
This works ok:
feedManager.addFeedEx( "whatever", addFeedView.address );
while using a binding to a property declared in addFeedView like
property string name;
feedManager.addFeedEx( addFeedView.name, addFeedView.address );
is not working.
In the c++ side I am getting a string only it is an empty one.
Any thoughts?
Best regards,
Cristian Daniel Stamateanu
More information about the Qt-qml
mailing list