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. Custom QWhatsthis for menu item (or how to capture QWhatsThis event for menu selections)
Qt 6.11 is out! See what's new in the release blog

Custom QWhatsthis for menu item (or how to capture QWhatsThis event for menu selections)

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

    I need to launch my own help system using the QWhatsThis event. I have an event filter installed on my application and can capture the QWhatsThis event for all widgets and tool bar buttons but it does not work for menu items. I am using Qt 4.8.2 and have this issue on Windows, Linux and Solaris. I use Qt Designer to create my .ui files. The same QActions are used on the toolbar and menu.

    I've tried calling installEventFilter on the application, the menu bar, and the action. Nothing seems to work. As I said earlier, I do manage to trap the QWhatsThis event on the widgets.

    Looking at the Qt code for QMenu, I see where the QWhatsThis text displayed in QMenuPrivate::activateAction. I want to prevent this and use the text to launch my help system.

    Thoughts?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AlterX
      wrote on last edited by
      #2

      I'm trying to understand difference between Whatsthis in designer (that automatically create a right-click context menu and show whatsthis) and the shortcut on the form "?" which does nothing!

      Have you some suggestion since you have almost done that?

      Qt Ambassador
      Real-time cooperative teams: http://www.softairrealfight.net
      Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

      https://codereview.qt-project.org/...

      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