In Qt, when a widget receives focus, how can get a notification about it, so I can execute some custom code? Is there a signal or an event for that?
Qt – Get a notification/event/signal when a Qt widget gets focus
focusqt
focusqt
In Qt, when a widget receives focus, how can get a notification about it, so I can execute some custom code? Is there a signal or an event for that?
Best Solution
You can add en
event filter
.This is an example of an application written with QtCreator. This form has a QComboBox named combobox.