[SOLVED]QComboBox border-radius issue?



  • 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;
    }
    @



  • I found a way...

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

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.