- Qt 5.15
- Qt Widgets
- C++ Classes
- QMenu
- Qt 5.15.19 Reference Documentation

# Obsolete Members for QMenu

The following members of class QMenu are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Related Non-Members

`(obsolete)` void | qt_mac_set_dock_menu(QMenu *menu)

## Related Non-Members

### void qt_mac_set_dock_menu(QMenu *menu)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Sets this menu to be the dock menu available by option-clicking on the application dock icon. Available on macOS only.

Deprecated; use QMenu::setAsDockMenu() instead.