VOOZH about

URL: https://www.geeksforgeeks.org/python/pyqt5-qcombobox-change-border-style-when-it-editable-and-off-state/

⇱ PyQt5 QComboBox – Change border style when it editable and off state - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PyQt5 QComboBox – Change border style when it editable and off state

Last Updated : 17 May, 2020
In this article we will see how we can change the border style of the combo box when it is editable and is in off state, border style can be dotted, dashed etc. When we set border to the combo box it is continuous although we can change it. Styled border will be only visible when combo box is editable and off state. In order to do this we have to change the style sheet associated with the combo box, below is the stylesheet code
QComboBox::editable:!on
{
border : 4px black;
border-style : dotted;
}
Below is the implementation Output : 👁 Image
👁 Image
Comment