Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to change QCombobox's look and feel?

How to change QCombobox's look and feel?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 187 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kangK
    wrote on last edited by kangK
    #1

    I want to change a QCombobox's look and feel just like this:
    b15bd2b7-1a31-4cd1-b7f6-785f9cfe47a6-image.png
    the drop-down list are color blocks and color name, the combobox shows which color was selected by drawing a color line.
    Now, I make it like this:
    4c23d7d9-cfe6-4090-82d3-bc658daf6981-image.png
    (Every item is a widget and I draw the color block and color name in it's paintEvent().)
    How can I draw a color line on the left of a combobox? Any suggestion would be appreciated!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved