Results 1 to 3 of 3

Thread: Deleting characters in QLineEdit widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Deleting characters in QLineEdit widget

    Hi,

    this is most probably because on a change you select all text on the line edit. Thus the whole is being deleted when you call QLineEdit::backspase() like the documentation says. So before calling backspace() make sure no text is selected and the cursor is at the end.

  2. The following user says thank you to Lykurg for this useful post:

    Santiago (11th November 2011)

Similar Threads

  1. Deleting children of a widget
    By ComServant in forum Newbie
    Replies: 5
    Last Post: 7th October 2011, 00:09
  2. deleting a widget
    By john_god in forum General Programming
    Replies: 1
    Last Post: 30th December 2010, 09:36
  3. Replies: 7
    Last Post: 19th May 2010, 13:24
  4. QLineEdit: how to avoid characters insertion?
    By QAlex in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2010, 11:04
  5. How to adjust spacing between characters in QLineEdit?
    By bzjbest in forum Qt Programming
    Replies: 2
    Last Post: 2nd January 2008, 07:44

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.