Results 1 to 3 of 3

Thread: QLineEdit::editingFinished() doesn't work if QLineEdit is empty?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QLineEdit::editingFinished() doesn't work if QLineEdit is empty?

    One reason: if the line edit has a validator and it does not return QValidator::Acceptable, or an input mask that is not matched/complete, then editingFinished() is not emitted.

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

    mireiner (9th July 2016)

Similar Threads

  1. Grey text in empty QLineEdit
    By Mefisto in forum Qt Programming
    Replies: 4
    Last Post: 3rd October 2017, 11:35
  2. QLineEdit empty string
    By zgulser in forum Newbie
    Replies: 4
    Last Post: 3rd August 2010, 14:18
  3. editingFinished of QLineEdit
    By weixj2003ld in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2009, 09:06
  4. Empty style sheet changes QLineEdit
    By mpi in forum Qt Programming
    Replies: 3
    Last Post: 15th June 2009, 20:13
  5. Default delegate displays empty QLineEdit?
    By andy.fillebrown in forum Qt Programming
    Replies: 3
    Last Post: 16th April 2009, 13:13

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.