79712302

Date: 2025-07-23 16:47:19
Score: 0.5
Natty:
Report link

I am writing a Python compatible syntax, but the concept should work for C++ too.

comboBox.setEditable(True)
comboBox.lineEdit().setAlignment(Qt.AlignCenter)
comboBox.lineEdit().setReadOnly(True)

Idea is, to make it editable, but setting lineEdit inside QComboBox as read-only later.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tuhin Mitra