Important: Please read the Qt Code of Conduct -

Non-editable QComboBox text alignment

  • As well as align text on a editable one is pretty straightfoward in code:

    it doesn't work on non-editable (there is no lineEdit), I could make lineEdit read-only, also disable it but you cannot click there to change the item (that's a pitty)

    Anyone knows a tip to make this change on a non-editable QComboBox?


  • HI and welcome to devnet,

    I think you should try to write your own QStyle

Log in to reply