Harmattan QML RatingIndicator always 100% when using inverted theme
I have run into a strange problem while using RatingIndicator for Harmattan.
[URL="http://harmattan-dev.nokia.com/docs/library/html/qt-components-extras/qt-components-meego-extrasratingindicator.html?tab=3&q=RatingIndicator"]RatingIndicator Reference[/URL]
I am developping a full QML application with
[CODE]theme.inverted = true[/CODE]
and when I use:
[CODE]
RatingIndicator {
id: myRatingItem
ratingValue: 1
maximumValue: 5
inverted = false
}
[/CODE]
The stars are correctly displayed (1/5).
However, when I use:
[CODE]
RatingIndicator {
id: myRatingItem
ratingValue: 1
maximumValue: 5
inverted = true
}
[/CODE]
or
[CODE]
RatingIndicator {
id: myRatingItem
ratingValue: 1
maximumValue: 5
}
[/CODE]
(which is the same due to the inverted theme), the stars are not correctly displayed (they are all filled as if the ratingValue would be 5/5)
This behaviour is seen on:
- Nokia N9 target
- Simulator with com.nokia.extras platform = Harmattan
The behaviour is correct in simulator with com.nokia.extras platform = Symbian
Obviously as I am developping a harmattan app with inverted theme, this is a big issue for me. Setting inverted = false on the component is not a solution as it is barely visible on a dark background.
My only explication is that there is a bug in the component on harmattan but maybe I miss something... Any ideas?
Thanks,
Re: Harmattan QML RatingIndicator always 100% when using inverted theme
Nobody ran into the same problem?
I am completely stuck here and I see no other option than to define my own component but I'd really prefer to avoid this...
Re: Harmattan QML RatingIndicator always 100% when using inverted theme
Hello,
It indeed seems to be a problem with the RatingIndicator, more specifically the image used for the inverted theme. Easiest solution would be not using inverted theme for your application, but if you are set on using inverted theme then you can write your own RatingIndicator component.
Br,
Villep