Receive native windows events in a qobject class...



  • i need to receive native windows events....i have successfully achieved it by subclassing from QWidgets and implementing the nativeEvent(QT5) method..... however one limitation is that the QWidget does not recieve any messages until it is shown as a window(i might be doing something wrong).....

    now i wish to create a generic class which recieves a handle from a qwidget or qmainwindow and then registers for receiving events for this widget. also i would like the signals and slots functionality, so that i can communicate back to the widget. i want to derive my class from QObject but uptill now i have not found any method of doing so using QObjects.....i did try a few things with QAbastractNativeEventFilter, but my knowledge is a bit limited....any help would be highly appreciated....

    thanks


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.