Dear Spirit, i will try based on ur example.

Dear talk2amulya, i have a mainwindow and when i clicked a button from the main window, i need to display another window. This window contains menu, toolbar, tool buttons etc... so i think i need to use QMainWindow.