Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.10.0
-
None
-
Windows 8.1 x64
Description
Code to reproduce:
#include <QApplication> #include <QWidget> #include <QVBoxLayout> #include <QLineEdit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget widget; QVBoxLayout layout; widget.setLayout(&layout); QLineEdit lineEdit; layout.addWidget(&lineEdit); lineEdit.setClearButtonEnabled(true); lineEdit.setText("text"); // To show clear button widget.show(); return a.exec(); }
Result:
You will not see any text in this gap but you will be able to select text dragging mouse from this gap. In my opinion the gap area must be completely passive (don't handle clicks (both left and right), show standard cursor etc).
Also works with:
- Actions added with QLineEdit::addAction;
- QComboBox (which contains QLineEdit inside).