Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.0 Beta1
-
None
-
161e8653c342278a4881da952ea723b107df93c0, 142c5ef9ddd17e59d8d096ab065aee8cb50f5e8f
Description
If a lineedit is read only and the clear button is enabled it is possible to clear the lineedit even if it is read only.
In this case the clear button should either be hidden or at least deactivated.
QLineEdit *edit = new QLineEdit(); edit->setClearButtonEnabled(true); edit->setReadOnly(true); edit->setText("test");
Perhaps it would make sense to do the same for disabled lineedits. But that is debatable.