Results 1 to 2 of 2

Thread: How to change arrow of QComboBox

  1. #1
    Join Date
    Jul 2019
    Posts
    29
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default How to change arrow of QComboBox

    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:
    drop-arrow.png

    My arrow image:
    arrow-down1.png

    Qt Code:
    1. 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);}")
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jul 2019
    Posts
    29
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to change arrow of QComboBox

    Hello! I found out what was wrong. My image was not loaded corectly, so I rebuild my project and now it works pretty well!

Similar Threads

  1. QcomboBox hide the drop down arrow
    By Mrdata in forum Newbie
    Replies: 6
    Last Post: 5th October 2018, 04:05
  2. Replies: 0
    Last Post: 13th October 2017, 08:23
  3. Replies: 2
    Last Post: 30th October 2016, 05:53
  4. qcombobox scroll arrow problem
    By mekalapandiyan@gmail.com in forum Qt Programming
    Replies: 4
    Last Post: 28th January 2013, 08:16
  5. QComboBox: remove drop Down Arrow
    By GuS in forum Qt Programming
    Replies: 2
    Last Post: 30th May 2008, 05:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.