Qt4 how to capture focus event on QLineEdit widget or others -


How can I capture a focus event in some widgets (for example, Clinadit) without creating a new widget?

More for help :)

One way to change a slot - focus (QWidget *, QWidget *) Sign in your main window with QApplication in your main function and connect to the Signal Focus Indicator (QWidget *, QWidget *). In Main.cpp

  QApplication a (argc, argv); Maine Window W; QObject :: connect (& amp; one, signal (by changing focus (QWidget *, QWidget *)), & amp; W, slot (Focused (QWidget *, QWidget *));         

The main window CPO

/ Html>

Comments