Note that there are some explanatory texts on larger screens.

plurals
  1. POQt Mac (Re)move "Special Characters..." action in Edit menu
    primarykey
    data
    text
    <p>I am developing an application in Qt that rebuilds its menus very often. However, when we call clear(), and re-add the actions that we want in the menu, "Special Characters..." appears to remain in the menu. Is there any way to remove, or move this action to the bottom of the QMenu?</p> <p>Here is the code that rebuilds the menu:</p> <pre><code>void MainWindow::initMenus(Tab* tab) { menuBar()-&gt;clear(); menuFile-&gt;clear(); menuEdit-&gt;clear(); menuSettings-&gt;clear(); menuHelp-&gt;clear(); ui_toolBar-&gt;clear(); menuBar()-&gt;addMenu(menuFile); menuBar()-&gt;addMenu(menuEdit); menuFile-&gt;addAction(actionNew); menuFile-&gt;addAction(actionOpen); if(tab) tab-&gt;addActionsFile(menuFile); menuFile-&gt;addSeparator(); menuFile-&gt;addAction(actionNext); menuFile-&gt;addAction(actionPrevious); menuFile-&gt;addAction(actionClose); menuFile-&gt;addSeparator(); menuFile-&gt;addAction(actionQuit); if(tab) { tab-&gt;addActionsEdit(menuEdit); menuEdit-&gt;addSeparator(); tab-&gt;addActionsHelp(menuHelp); menuHelp-&gt;addSeparator(); } menuEdit-&gt;addAction(actionEditor_Settings); menuHelp-&gt;addSeparator(); menuHelp-&gt;addAction(actionAbout); if(tab) tab-&gt;addOtherActions(menuBar()); menuBar()-&gt;addMenu(menuHelp); ui_toolBar-&gt;addAction(actionNew); ui_toolBar-&gt;addAction(actionOpen); if(tab) tab-&gt;addToolbarActions(ui_toolBar); } </code></pre> <p>It is supplied a tab, which can add its own actions to the menu as well using those functions.</p> <p><img src="https://i.stack.imgur.com/XEM4w.png" alt="Special Characters Option in Edit Menu"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload