Hi,

I've added a submenu to the main menu with the following command:

subMenu = mainMenu->addMenu("Recent files");
subMenu->addAction(....);
...

The problem is that when I run my application and open subMenu, it's not shown right next to the mainMenu. It might have different positions on the screen and might be not attached to the mainMenu at all.

How to bind the subMenu to the mainMenu?

Thanks for any help!!