Results 1 to 3 of 3

Thread: how to stop the user inputting to QTextEdit when user hit enter

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question how to stop the user inputting to QTextEdit when user hit enter

    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

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to stop the user inputting to QTextEdit when user hit enter

    Disable the lineEdit / textEdit , simple

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face Re: how to stop the user inputting to QTextEdit when user hit enter

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.