hi...
can anyone say me what value will the following function return:
QApplication::focusWidget () .
or else how is it used...?
hi...
can anyone say me what value will the following function return:
QApplication::focusWidget () .
or else how is it used...?
From the docs
Lets say you have an application which has 4 Input Boxes and you need to access the input box that currently has focus. You can use the above function for it.Returns the application widget that has the keyboard input focus, or 0 if no widget in this application has the focus.
I know it's a very bad example, but you get the idea, rite?
Mithin
www.mithin.in
suppose if we have input boxes in some other application. can we use this function....?
will the following function work as it says "Returns the application widget that has the keyboard input focus, or 0 if no widget in this application has the focus":
QApplication::focusWidget ()
It means it will return a widget from YOUR application, not from ANY application. The last part of the sentence quoted suggests that as well.
Bookmarks