A very simple to use widget: StarWidget *stars = new StarWidget( windowParent); stars->setMaximumStars(10); stars->setCurrentStars( rand()%10); stars->show(); connect(stars, SIGNAL(valueChanged(int)), someObj, SLOT(starsChangedValue(int))); It currently uses a 'star.svg' file on the same folder as the binary. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
6 lines
109 B
Plaintext
6 lines
109 B
Plaintext
<!DOCTYPE RCC><RCC version="1.0">
|
|
<qresource>
|
|
<file alias="star">star.svg</file>
|
|
</qresource>
|
|
</RCC>
|