PDA

View Full Version : Stylesheets and QFontComboBox Sub-control



been_1990
3rd June 2010, 03:37
I've been trying to use a picture for the background of the "down-arrow" of QFontComboBox. If I try
QFontComboBox::arrow_down{
border:none;
background-image: url("arrow.png" );
}
Nothing happens. I tried that on a regular QComboBox and no image is displayed, but using gradients work fine.
The effect I want to achieve with the font combobox, is a no-border box, not even the down-arrow. Just everything plain.

gutiory
3rd June 2010, 13:13
Hello,

I've one question to you, ¿have you added the arrow.png file to thr resources file of the project?.
Maybe I'm wrong, but when I've tried to put an icon into a button or maybe into a menu bar, nothing has appear unless I add it into the resorurces file.

I hope that helps.
Regards.

been_1990
4th June 2010, 19:53
It seems that I only needed to use :: before the sub-control I wished to configure.