What is the complete stylesheet you tried and what did you apply it on?
Why dont you just use QLineEdit and QCompleter::PopupCompletion if you dont need arraws. I will just behave like combo?
all is the following
::down-arrow{image: url(none.jpg);
and I want to apply it on QCombobox as usual.
Any ideas?
Hi,
I wonder why the following doesn't work...I tried it from the designer just like that but it did not work.
Maybe I'm missing something or maybe it's qt's bug. Please help about this situation.
::down-arrow {
subcontrol-origin: content;
subcontrol-position: center;
position: relative;
left: 1px; /* 1 pixel dropdown border */
}
Hi again,
I solve my initial problem by doing
::drop-down::down-arrow instead of ::down-arrow only, but this time I lost the frame around my combobox...!![]()
Any ideas?
Hi,
I said the wrong word I guess. I meant the border around my combobox.
I'm using motifstyle and once I apply this ;
::drop-down::down-arrow{image: url(mycustomicon.PNG)}
the combobox's down arrow takes my new icon but the combobox itself appears like borderless.
If you use stylesheets, the current style gets replaced with a dynamically created one which acts as a proxy between the base style and the widget. Then it might happen you lose more of the default style then what you'd like. In this situation you have to use stylesheets to style the widget more - in your case bring back the frame (using the "border" css property).
Hi,
I already did what you said about using "border" property.
I have tried both of the following ways to achieve my goal;
1- ::drop-down{border-style: outset; border-width:1px}
2- ::drop-down::down-arrow{image: url(mycustomicon.PNG); border-style: outset; border-width: 1px}
But both ways only cover around my down-arrow icon not the combobox![]()
Problem solved!
first way works with some minor changes.
But now, I couldn't access the combobox items to give them style. What I want to do is when I click the drop-down, the list of items appeared changes it's background color. I looked at the docs but couldn't find a solution.
Last edited by zgulser; 28th April 2009 at 09:43.
Bookmarks