Connect to selectionChanged() signal and call deselect(). Or just use QLabel instead of QLineEdit. What's the point of using the line edit if you want to disable all its functionality?