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. [SOLVED] OSX menu icons
QtWS25 Call for Papers

[SOLVED] OSX menu icons

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.9k Views
  • 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.
  • G Offline
    G Offline
    Gertwin
    wrote on last edited by
    #1

    I try to hide the menu icons on a OSX build.

    From the documentation (5.2) I tried:

    void qt_mac_set_menubar_icons(bool enable);

    But getting this link error:

    Undefined symbols for architecture x86_64:
    "qt_mac_set_menubar_icons(bool)", referenced from: _main in main.o

    grepping in the Qt installation dir only finds "qt_mac_set_menubar_icons" only in the documentation, not in the libs.

    Am I missing something?

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

    Hi and welcome to devnet,

    It's probably a documentation error. These kind of platform specific code has been moved to their respective extras repository (in your case qmacextras) but it seems that it has not yet been ported to Qt 5.

    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
  • SGaistS Offline
    SGaistS Offline
    SGaist Lifetime Qt Champion
    wrote on last edited by
    #3

    Looking a bit further you can use this:

    @QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus, true);@

    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
    1
  • G Offline
    G Offline
    Gertwin
    wrote on last edited by
    #4

    Thanks for your answers, I wil try this.

    [quote author="SGaist" date="1391382688"]Looking a bit further you can use this:

    @QApplication::instance()->setAttribute(Qt::AA_DontShowIconsInMenus, true);@[/quote]

    .

    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