[Qt-qml] Xmlrole and xpath
bea.lam at nokia.com
bea.lam at nokia.com
Tue Jan 4 04:02:58 CET 2011
Hi Michael,
On 02/01/2011, at 10:07 PM, ext Michael wrote:
> Hi,
>
> How do i get the Xmlrole of the attribute style="color:green" to get "green"?
> I tried query: "substring-after(@style,":") , or "substring-after(string(@style),":") neither with success.
These both worked fine for me.
The only thing I can think of is that if the role name is "style", and the value is displayed in a Text delegate, then make sure the style value is referred to as "model.style" rather than just "style" (which would refer to the Text style property instead).
If this is not the problem, can you provide an example that reproduces the issue?
regards,
Bea
More information about the Qt-qml
mailing list