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/MFC Event Loop - stop MFC receiving event?
Qt 6.11 is out! See what's new in the release blog

Qt/MFC Event Loop - stop MFC receiving event?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.3k 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.
  • KaylxK Offline
    KaylxK Offline
    Kaylx
    wrote on last edited by
    #1

    Hey peeps,

    I'm currently using the Qt/MFC Migration Framework to get an existing MFC application to work with my new Qt (top-level modeless) window (running on a separate thread).

    It generally works ok except for, a window focusing bug, and the one i'm here to ask about which is Context Sensitive (F1) Help.

    Basically when the user hits F1 I want Qt to handle the event and bring up an online help file. I can get this working without issue, however MFC also receives the F1 (ID_HELP) event and wants to open help (using WinHelp) as well. I don't want MFC to receive that event, i only want Qt to handle it. I've tried installing an eventFilter and returning true as well as calling event->ignore()/event->accept() to no avail.

    Does anyone have any ideas how i can stop MFC receiving the F1 help message?

    Regards,
    Kaylx

    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