diff --git a/widgets/lineedit.cpp b/widgets/lineedit.cpp index 23927f18f..e4d95af40 100644 --- a/widgets/lineedit.cpp +++ b/widgets/lineedit.cpp @@ -47,6 +47,7 @@ LineEdit::LineEdit(QGraphicsItem *parent, QGraphicsScene *scene) { setTextInteractionFlags(Qt::TextEditorInteraction); setCursor(Qt::IBeamCursor); + setFlag(QGraphicsItem::ItemIsSelectable); } LineEdit::~LineEdit()