Edit QObject property from qml

I was writing some class, which extends QObject and has few Q_PROPERTY I`m use it in QAbstaction model with one Role (always return QObject* ), in QList; In QML I would to Bind property with TextEdit, like a :

Binding
{
    target :currentReport
    property: description
    value: text_description_edit.text
}

But this entry returns error and not bind my property:

file:///..somePath../ReportAddDelegate.qml:179: ReferenceError: Can't find variable: description

How I can edit my QObject property in qml?

UPD: im use property QtObject currentReport in delegate component

//sorry for my english

Answers


Solved! I'm take mistake in Binding ! need write property: "description" instead property: description


Need Your Help

how is MalformedURLException thrown in Java

java protocols malformedurlexception

I mean, how does Java decide which protocols are available? I run some code from inside Eclipse, and it works just fine. Then I run the same code from outside Eclipse, and I get "unknown protocol"

ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value

python django heroku django-postgresql

I am in the midst of setting up my django project on heroku. I have been following the documentation, but when I foreman start I receive an error that I can't quite figure out. I have set up my eng...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.