问题
There is QWidget::nativeEvent for widget windows.
Is there some analogue for windows created by QML
?
I want to process some messages of main window (ApplicationWindow
).
Main window is created by QML
code which is loaded by QQmlApplicationEngine
.
Should I use QCoreApplication::installNativeEventFilter?
来源:https://stackoverflow.com/questions/50900006/process-native-events-of-a-window-created-by-qqmlapplicationengine