How to get event properties
-
Hi all,
How to get event properties in slot i, e how to get signal properties in slot function like on which object signal are generated and its Id, state and window id.
ex": if i click button how to get properties of button like button Id, mainwindow Id, state...etc..
-
Use "QObject::sender()":http://qt-project.org/doc/qt-5/qobject.html#sender and "qobject_cast":http://qt-project.org/doc/qt-5/qobject.html#qobject_cast in a slot to get a pointer to the sender.