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
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to