I have found that doing
self.combo.setEditable(True)
self.combo.lineEdit().setAlignment(QtCore.Qt.AlignCenter)
will align the text in the combobox to the center. But as soon as i do that , the styling that i have applied to the combobox doesn't work and the text that shows inside it will the default plain text . Also i don't want to make it editable and i dont like the GUI effect that occurs when we set it to editable.
Is there an easy way to center align the text and yet retain the same GUI effects as before (like style and behaviour on clicking it) ?