Results 1 to 12 of 12

Thread: Detect when a widget looses focus?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Detect when a widget looses focus?

    I'm using qt 4.3.0 and I'm trying to figure out a way to detect when a widget looses focus. I've got two widgets I'm trying to keep an eye on, a QTextEdit and a QLineEdit. Theres a button that I have that when I click on it, I want it to insert some text in either the text edit or line edit based on which one had focus last.

    *edit*
    I found the QLineEdit has a finishedEditing signal that is thrown when it looses focus. Now I'm just stuck on how to detect when QTextEdit looses focus.

    Any ideas?
    Paul
    Last edited by thomaspu; 16th August 2007 at 15:10.

Similar Threads

  1. How to get focus event in child widget
    By YuriyRusinov in forum Qt Programming
    Replies: 4
    Last Post: 17th October 2006, 07:53

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.