Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0, 6.1.0, 6.2.0 Alpha
-
None
-
-
0e6b31019f01c72ea3af3de31095f8269c7d7f30 (qt/qtbase/dev) e8fbb9430ceff5a506388492539a33790b0e94b2 (qt/qtbase/6.2) 2cfdbd62be950a5b2c512d64d7dd6f7060c11f7a (qt/qtbase/6.1)
Description
[Code]
#include "mainwindow.h" #include <QLineEdit> #include <QStyle> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { this->resize(500, 400); this->move(500, 400); QLineEdit *edit = new QLineEdit(this); edit->addAction(style()->standardIcon(QStyle::SP_FileIcon), QLineEdit::ActionPosition::LeadingPosition); edit->resize(200, 40); edit->move(150, 150); edit->setPlaceholderText("hello"); edit->setClearButtonEnabled(true); // ئۇيغۇر تىلى //abcd... }
[Steps]
- Type some characters
- Then you'll see that the overlap of Icon and text will occur in QLineedit.
[Hope]
- Icon and Text are in their correct postion.
[Tips]
- This bug will not appear in the old version!
- This bug is caused by a patch submitted.
- The patch link is here.(https://codereview.qt-project.org/c/qt/qtbase/+/350236).
Attachments
Issue Links
- is duplicated by
-
QTBUG-95928 QLineEdit: leading action icon and text overlap
- Closed
- relates to
-
QTBUG-95011 QLineEdit inconsistently changes layout direction when text changes
- Closed
For Gerrit Dashboard: QTBUG-94824 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
358115,12 | fix: misplacement of placeholder text in QLineEdit with RTL content | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
358205,4 | Fix placement of placeholder text in QLineEdits with action icons | dev | qt/qtbase | Status: MERGED | +2 | 0 |
358518,2 | Fix placement of placeholder text in QLineEdits with action icons | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
358519,2 | Fix placement of placeholder text in QLineEdits with action icons | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
358520,2 | Fix placement of placeholder text in QLineEdits with action icons | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |