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. Building up context menus

Building up context menus

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 493 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.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hello,

    As I was working on my web browser, I started realizing that it would be much more complete if I had better right-click context menus. on right-click, I would like a menu to appear with a bunch of QActions. Qt already seems to have built a context menu into my app for me, but I would like to add more actions to it. I also need it to only display valid actions (i.e. if I right-clicked the QWebView I would get back, forward, reload, etc. but if I click on the tab of a QTabWidget I would get close, new tab, pin tab, etc.)
    How can I add actions to the context menu?

    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