PDA

View Full Version : QScrollBar up-down arrow icon



zgulser
1st April 2010, 09:26
Hi,

How to put QScrollBar up and down arrows icon's?

I tried ;



QScrollBar::up-arrow
{
uparrow-icon: url(icon.png);
}


and



QScrollBar::up-arrow:vertical
{
uparrow-icon: url(icon.png);
}


but it didn't work..

Lykurg
1st April 2010, 09:38
It's "image: url();"

zgulser
1st April 2010, 10:06
Hi, thanks for your answer but if you mean



QScrollBar::up-arrow:vertical
{
image: url(icon.png);
}


by image: url(); , it doesn't work as well.

Can you be a bit more specific?

Lykurg
1st April 2010, 10:10
It works but not alone. I ran in that difficulty time ago. Have a look at "Qt Style Sheets Examples" in the documentation and use their entire style sheet. Past your image inside and it will work. Then delete one row after the other till you find the other options required for setting the image. Sorry but I didn't remember the right configuration for that.

zgulser
1st April 2010, 10:18
That what i'm doing right now:)..I got confused at this point. Actually, I wonder if uparrow-icon and downarrow-icon properties are working. Anyway thanks again.

zgulser
1st April 2010, 12:13
QScrollBar::up-arrow:vertical
{
background: url("styles/bluesky/up_arrow.png");
background-repeat: none;
left: 3px;
top: 5px;
}


I finally tried this out but it didn't work as well..I'm stuck in this problem. Any ideas could be very helpful..