Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
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.