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. Qt Native Event Filter not working when App is run as non-admin
Forum Updated to NodeBB v4.3 + New Features

Qt Native Event Filter not working when App is run as non-admin

Scheduled Pinned Locked Moved Unsolved General and Desktop
usbnativeeventfilter
1 Posts 1 Posters 660 Views
  • 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.
  • R Offline
    R Offline
    Rohinee
    wrote on 4 Apr 2019, 17:47 last edited by
    #1

    I am using Qt's nativeEventFilter mechanism and WinAPI's RegisterDeviceNotification to register to USB plug/unplug events in my application on Windows. This is not working when the application is run by double clicking the executable.

    It all works fine when I run my application from the Visual Studio Debugger (both Debug and release modes), when I run the executable from Command Prompt, and when I Run As Administrator. But when I launch the application by double clicking the MyApp.exe, even though the RegisterDeviceNotification is successful, the code never hits the nativeEventFilter(...) which is otherwise listening constantly in the other cases mentioned above.

    Is there any way to fix this without having to make the application run as Administrator by default?

    c++ windows qt

    1 Reply Last reply
    0

    1/1

    4 Apr 2019, 17:47

    • Login

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