views:

444

answers:

1

hi..

i want to know how to add menu to a widget, which is derived from Qwidget in QT symbian,

i know how to add menu to window derived from Qwindow, but i am not getting for widget

derived from Qwidget

pls help me..

Thanks

+2  A: 

QMainWindow provides you convenience function to add and manage a QMenuBar.

With a window that inherits from QWidget (instead of QMainWindow) you need to achieve this by yourself. You can add the menu bar in the window layout like any other QWidget using the function add. By playing with the layouts you can place QMenuBar at the top of the window. An other way can be to use a QToolBar.

Patrice Bernassola