PDA

View Full Version : how to stop the user inputting to QTextEdit when user hit enter



wagmare
27th November 2008, 05:01
hi friends/experts,
i am developing an app as the user types a URL in a textEdit and if he hits enter
i have to get the input to the QWebKit() ... the problem is how can i prevent user to give input after the user hit ENTER key ...
please help:confused:

aamer4yu
27th November 2008, 08:59
Disable the lineEdit / textEdit , simple :)

wagmare
27th November 2008, 10:16
in line edit i use return pressed signal for a slot and there i disabled the lineedit after the Qwebview returns loadcomplete signal i again enabled it