Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to get event properties
mvenkat061 last edited by
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..
andreyc last edited by
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.