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. QToolbar context menu - how did anything get added to it?

QToolbar context menu - how did anything get added to it?

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

    I've got this QToolBar at the top of the MainWindow, and right-clicking on it presents a context menu of dockable windows, to show them or not.

    I cannot find where the entries on this context menu are set. I've been rooting through the QToolBar documentation hoping to see something obvious like "addSomethingToContextMenu" but to no avail.

    Can anyone give me a hint on function names to search for in the code, or some other way to find how this context menu is being set?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the top of my head you should rather look at the QMainWindow source for that

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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