PDA

View Full Version : QComboBox: remove drop Down Arrow



GuS
29th May 2008, 18:57
Hi folks!

Actually i want to remove the drop Down arrow since i did it in the border-image, and seems i can't:


QComboBox {
border-image: url(:/Styles/styles/comboBox.png) 2 8 2 8 stretch stretch;
border-width: 2x 8px 2px 8px;
min-height: 19px;}
QComboBox:hover {
border-image: url(:/Styles/styles/comboBox_hover.png) 2 8 2 8 stretch stretch;
border-width: 2px 8px 2px 8px;
min-height: 19px;}
QComboBox:on {
border-image: url(:/Styles/styles/comboBox_pressed.png) 2 8 2 8 stretch stretch;
border-width: 2px 8px 2px 8px;
min-height: 19px;}
QComboBox::down-arrow {
image: none;}
QComboBox::down-arrow:on {
image: none;}
QComboBox QAbstractItemView {
border-image: url(:/Styles/styles/menuBg.png) 2 2 2 2;
border-width: 2px 2px 2px 2px;}

And i have this weird result (Attached image).

Any tip?

Thanks

wysota
29th May 2008, 23:12
So why not cut the image and use part of it for the drop-down arrow? Just move it to the right a bit to align with the rest of the image.

GuS
30th May 2008, 04:05
Hi,


I know i could do that, i am asking another thing here....

Thanks...

Cheers.