PDA

View Full Version : How to change arrow of QComboBox



INeedADollar
11th October 2019, 21:52
Hello! I have a QComboBox and I want to change the drop arrow, but my arrow is showed very pixelated in QComboBox. I also want to move it to the right and make it bigger. What to solve that?

How my QComboBox looks like:
13274

My arrow image:
13275



type_box->setStyleSheet("QComboBox { border: 1px solid #dfdede; border-radius: 10px; background: #dfdede; } QComboBox::drop-down:!editable { background: transparent; border: none;} QComboBox::down-arrow {image: url(:/icons/arrow-down.png);}")

INeedADollar
12th October 2019, 18:42
Hello! I found out what was wrong. My image was not loaded corectly, so I rebuild my project and now it works pretty well!