Results 1 to 3 of 3

Thread: how to catch enter press in QLabel?

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to catch enter press in QLabel?

    When enterig text in a QLabel I wish to make it call a specific slot when ever the user presses ENTER when the cursor is in the QLabel widget.
    Is there an easy way of doing this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to catch enter press in QLabel?

    But QLabels are not editable.

  3. #3
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to catch enter press in QLabel?

    Yes, sorry, I meant QLineEdit, and there is a returnedPressed signal that I can use.
    Sorry.

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.