Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2008
Why lostFocus() became COMPAT signal?


Message 1 in thread

Iâm using QLineEdit::lostFocus() signal for some reason. Debug output tells me the following:

 

Connecting from COMPAT signal (QLineEdit::lostFocus())

 

Why that signal became COMPAT and what should I use instead?

 

 


Message 2 in thread

The signale was probably "dropped" in QT 4.0 however, they may not of marked it as COMPAT till the version that your using.

 

That said, if you look in the QT 3 to QT 4 docs will list which new signal to connect to.


Scott

 

________________________________

From: Антон Сердюков [mailto:uksus70@xxxxxxxxx] 
Sent: Wednesday, May 07, 2008 8:33 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: Why lostFocus() became COMPAT signal?

 

I'm using QLineEdit::lostFocus() signal for some reason. Debug output tells me the following:

 

Connecting from COMPAT signal (QLineEdit::lostFocus())

 

Why that signal became COMPAT and what should I use instead?

 

 


Message 3 in thread

By the way, Iâm talking about Qt 4.4.0. There was no such message in earlier version (4.3.1).

And I havenât found any substitution signal for loosing focus.


Message 4 in thread

Id have to look at the code... but probably it was deprecated in 4.0, but finally got around to marking it as such in 4.4.0

 

That said, the signal QApplication::focusChanged( QWidget * old, QWidget * new ) is probably what you are looking for.

 

You can also used QLineEdit::editingFinished 

 

Scott

 

________________________________

From: Антон Сердюков [mailto:uksus70@xxxxxxxxx] 
Sent: Wednesday, May 07, 2008 9:11 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: RE: Why lostFocus() became COMPAT signal?

 

By the way, I'm talking about Qt 4.4.0. There was no such message in earlier version (4.3.1).

And I haven't found any substitution signal for loosing focus.