I'm trying to go outside combo box frame with this CSS Qt style sheet:
QComboBox#tab_combo {
margin: 0 26px 0 0; /* make room for the arrow */
padding: 2px 1px 2px 1px;
min-width: 19px;
min-height: 14px;
max-height: 14px;
width: 40px;
height: 14px;
//...strip
}
QComboBox#tab_combo::drop-down {
subcontrol-origin: margin;
subcontrol-position: center right;
width: 19px;
min-width: 19px;
max-width: 19px;
height: 14px;
min-height: 14px;
padding: 0;
margin: 0;
border: 1 solid #515151;
}
QComboBox#tab_combo::down-arrow {
image: url(:/combo_arrow.png);
min-width: 19px;
max-width: 19px;
width: 19px;
min-height: 14px;
max-height: 14px;
height: 14px;
}
All success except padding, you can see it on picture ( figure 3 ).
qcombobox padding http://www.turist.lv/tmp/combo-box-trouble.png
Any suggestion ?
Thank you
p.s How to reproduce: http://pastebin.com/4ZiYRUmB
Edit: How to solve it: Need to change QComboBox CSS with this code:
padding: 2 -19px 2 1;
width: 59px;
You should change QComboBox padding to negative value