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. [SOLVED]QComboBox border-radius issue?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]QComboBox border-radius issue?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 4.1k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    b1gsnak3
    wrote on last edited by
    #1

    Hello!

    I am trying to add a border-radius using css but this does not seem to work for a editable QComboBox. For a normal combo box it works fine, the issue appears only when I set the combo box to be editable. I have tried everything I could think of (adding a border radius to QComboBox, to QComboBox:editable, to the line edit of the combobox) but I cannot seem to get it to work. Is there a subcontrol that I am not aware of that I should be styling?

    @
    QComboBox {
    border: 1px solid gray;
    border-radius: 3px;
    }

    QComboBox:editable {
    border-radius: 3px;
    }

    QComboBox QLineEdit {
    border-radius: 3px;
    }
    @

    1 Reply Last reply
    0
    • B Offline
      B Offline
      b1gsnak3
      wrote on last edited by
      #2

      I found a way...

      @
      QComboBox {
      border: 1px solid gray;
      border-radius: 3px;
      padding: 3px 3px 3px 3px;
      }

      QComboBox::drop-down {
      border-radius: 3px;
      }
      @

      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