how to monitor TextEdit's value in plasma qml?

Aaron J. Seigo aseigo at kde.org
Sat Jul 20 11:05:32 UTC 2013


On Friday, July 19, 2013 23:45:56 Bruce Ouyang wrote:
> in html, textedit element has an onChange attribute for monitoring its value
> change. plasma qml doesn't. how can i achieve this purpose?

in QML, every property has an on<PropertyName>Changed handler. so if there is 
a property named “text” there will be an onTextChanged. if there is a property 
named ‘foo’ there will be an onFooChanged. 

this is both nifty and consistent.

-- 
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130720/67d5164c/attachment.sig>


More information about the Plasma-devel mailing list