Vipul Gupta
Vipul Gupta

Reputation: 265

How add new options to the dock icon menu

There are some default options that appear when a macOS application in added to the dock like Quit, Hide, Show in Finder, etc.

I want to add few more options to the dock menu for my Qt application.

I'm unable to find any artifacts that Qt provides to configure the dock menu.

Is it possible to do so using Qt?

dock menu icon's context menu

Upvotes: 2

Views: 104

Answers (1)

Zhong Jason
Zhong Jason

Reputation: 1

m_menu = new QMenu(0);
m_editerAction = new QAction("Hello");
m_menu->addAction(d_ptr->m_editerAction);
m_menu->setAsDockMenu();

Upvotes: 0

Related Questions