Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Receive native windows events in a qobject class...
Forum Updated to NodeBB v4.3 + New Features

Receive native windows events in a qobject class...

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 857 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alee
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved