diff --git a/widgets/lineedit.cpp b/widgets/lineedit.cpp index 7dbf54f6d..2ae9a2cdd 100644 --- a/widgets/lineedit.cpp +++ b/widgets/lineedit.cpp @@ -177,6 +177,7 @@ void LineEdit::setGeometry(const QRectF& geometry) { prepareGeometryChange(); setTextWidth(geometry.width()); + setPos(geometry.topLeft()); update(); }