Results 1 to 5 of 5

Thread: QLineEdit Signal

  1. #1
    Join Date
    Apr 2020
    Location
    Lithuania
    Posts
    24
    Thanks
    17
    Qt products
    Qt5
    Platforms
    MacOS X

    Default QLineEdit Signal

    Hello,

    Is there a signal for QLineEdit like for QPushButton clicked()?

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit Signal

    All functions and signals for a QLineEdit can be found here: https://doc.qt.io/qt-5/qlineedit.html

    Why should there be a clicked() signal? There is nothing to click.

  3. #3
    Join Date
    Apr 2020
    Location
    Lithuania
    Posts
    24
    Thanks
    17
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QLineEdit Signal

    I am creating a sudoku game, and I want to highlight the row and column when a user clicked on the tile(QLineEdit) to write a digit. So, if there isn't such thing like clicked() signal
    on QLineEdit , what should I do?
    Last edited by laurynas2003; 14th April 2020 at 17:52.

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit Signal


  5. The following user says thank you to Lesiok for this useful post:

    laurynas2003 (14th April 2020)

  6. #5
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit Signal

    Then you're looking for a focus change event.

  7. The following user says thank you to ChristianEhrlicher for this useful post:

    laurynas2003 (14th April 2020)

Similar Threads

  1. clicked() signal for QLineEdit
    By smarinr in forum Qt Programming
    Replies: 10
    Last Post: 26th June 2019, 16:35
  2. Can't get QLineEdit textEdited signal to work
    By Michael Druckenmiller Sr in forum Newbie
    Replies: 1
    Last Post: 13th April 2012, 06:02
  3. QLineEdit + QCompleter: returnPressed signal
    By thefriedc in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2010, 16:21
  4. QLineEdit - lostFocus signal problem
    By Enygma in forum Qt Programming
    Replies: 6
    Last Post: 17th June 2010, 20:52
  5. No such signal QLineEdit::textChanged(QString&)
    By zorro68 in forum Qt Programming
    Replies: 4
    Last Post: 14th November 2007, 19:35

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.