I want to that; when i one clicked into qlineedit, automaticlly lineedit`s text is selected .
How can I do that ?
I want to that; when i one clicked into qlineedit, automaticlly lineedit`s text is selected .
How can I do that ?
if life was easy:
Qt Code:
connect(le, SIGNAL(clicked()), le, SLOT(selectAll()));To copy to clipboard, switch view to plain text mode
but, alas, QLineEdit has no such signal...
so, you will need to intercept mouse-clicks (using an event filter, or if you subclass the QLineEdit in some of its event handling functions) and then call selectAll()
HTH
Try to look at
andQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
void setFocusPolicy ( Qt::FocusPolicy policy )To copy to clipboard, switch view to plain text mode
I'm a rebel in the S.D.G.
Bookmarks