I think it would be easier to make apropriate context menu in widgets added to the tabs. For example: In orders tab you would have some OrdersWidget with some list of orders or something. Make the order's menu as a context menu in OrdersWidget. Then:
tabWidget->addTab(new OrdersWidget, tr("Orders"));
tabWidget->addTab(new OrdersWidget, tr("Orders"));
To copy to clipboard, switch view to plain text mode
So clicking anywhere on tab page will result in showing the orders menu. Same with CustomerWidget and so on.
Bookmarks