The problem is that I'm doing this from my pluigin? So how to get QMenu from main app? Plugin should add QAction to this QMenu.

Plugin has QMainWindow parent so it can access its QMenuBar?