PDA

View Full Version : how to call another dialog using menubar



merry
16th April 2007, 15:26
hi all
i m working on qt3.1 on Linux
i have problem while using menubar
problem in steps:
1. i have a mainwindow having file menu
2. i want to call another dialog by clicking on one of the file menu item say "NEW"

Thanks in advance

marcel
16th April 2007, 15:28
You will have to add a QAction to your "New" menu and connect it's triggered() signal to a slot in your main window. In that slot you create the dlg object and show it.

regards