Search code examples
qtqt4

Disable "Start Dictation" for an app in Qt


Is there a way to disable "Start Dictation" for a mac application? Basically, I am getting "Start Dictation..." menu in "Edit" Menu bar repeatedly. Any work around will be helpful.


Solution

  • Changing the title property of your QMenu will prevent OS X from auto-adding silly things to your Edit menu.

    So if I have a QMenuBar and I'm adding menus to it..

    m_edit = this->addMenu(tr(" Edit"));
    

    Notice I put a space in front of the text.