PDA

View Full Version : How Do I know the name of focussed widget?


sgkim99
17th September 2007, 10:19
I am a newbie in Qt.
In my form, there are several widgets like line-edit fields.

I want to know the object name of current selected(focussed) object.

How can I do that?

Thanks in advance!

jpn
17th September 2007, 10:35
See QApplication::focusWidget() and QObject::name().

sgkim99
17th September 2007, 12:23
Really appreciate your help!!!