Another novice question

Is it possible to create context menus in the designer and then invoke them in code? For example deign the menus and assign their events in the QtDesigner.

Help appreciated!