How to stop long press in QLineEdit??
-
Hi all:
i'm trying to do "long press" in QlineEdit and show only one word and not repeat the same word.
i tried to use keypressevent , keyrelaseevent , eventfilter ,but didn't work.
or maybe i just doing the wrong way?
please someone give any idea , thanks. -
welcome to devnet
Really just an idea. There is also "QValidator":http://qt-project.org/doc/qt-5.0/qtgui/qvalidator.html and "QRegExpValidator":http://qt-project.org/doc/qt-5.0/qtgui/qregexpvalidator.html It depends on what you try to achieve, but those could offer also a solution.
-
[quote author="koahnig" date="1374478475"]welcome to devnet
Really just an idea. There is also "QValidator":http://qt-project.org/doc/qt-5.0/qtgui/qvalidator.html and "QRegExpValidator":http://qt-project.org/doc/qt-5.0/qtgui/qregexpvalidator.html It depends on what you try to achieve, but those could offer also a solution. [/quote]
thank you for reply, i will try.