Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.1
-
None
Description
A QLineEdit emits editingFinished() signals even when set to readOnly(true) which it surely should not do as read-only.
Try the following snippet:
QLineEdit* l = new QLineEdit(); CHECK_TRUE(connect(l, &QLineEdit::editingFinished, this, [&](){ qDebug() << "Hello!"; })); l->setReadOnly(true); l->show();
Run it, then click the line edit (giving it focus) then click somewhere else (removing focus from line edit). You will see a "Hello!" in the output console which means the signal was emitted.
Attachments
Issue Links
- is duplicated by
-
QTBUG-77728 Readonly QLineEdit emits editingFinished on focus lost
- Open