With Qt, I can filter out all the events QEventthat my application receives or produces with:
QEvent
qApp.installEventFilter(my_filter_object)
Is there a way to filter Qt signals ( signals and slots ) in the same way can I filter QEventevents?
With the QtCore.QStateMachine.SignalEventextension QEventand StateMachineSignal QEvent.Type, there everything seems to be in place, but my event filter may not seem to be one of them.
QtCore.QStateMachine.SignalEvent
StateMachineSignal
QEvent.Type
IOW, is there a way to get the name (index) of the signal, the object emitting the signal, and the arguments passed for each signal of each QObjectin my application without explicitly connecting to it?
QObject
Thanks!
. API QSignalSpy, . - TestLib Framework, (-vs), . , .
-vs
, QMetaObject, QObject . , , ( , ).
- , . , , -. QEvent.MetaCall.
QEvent.MetaCall
QMetaCallEvent, Qt, PyQt. id(), sender(), signalId() args(). PyQt , , - QEvent, .
QMetaCallEvent
id()
sender()
signalId()
args()
QMetaCallEvent, - reset .
, . , eventloop. ( ) - , , , , , .
Source: https://habr.com/ru/post/1617496/More articles:AngularJS - Ng-Table will not parse headers - javascriptshow git to view previous version of renamed file? - gitRunning jar application file on spark-submit in google dataproc cluster instance - javaWebservice - How to pass timezone information in a datetime element - c #Device Orientation in Cocos2d-iOS - iosMendeley API File ID search ends with response code 0 - mendeleyWhat happened to microsoft.bcl.simd? - c #What are the key differences between Firefox and the Chrome App? - web-applicationsJavaScript prototype confusion - javascriptForm Extension in C # - c #All Articles