I would like to create a context menu for a QListWidget, while continuing to use Designer for creating the user interface. At the moment it looks like I need to subclass QListWidget and implement void QWidget::contextMenuEvent ( QContextMenuEvent * event ).

The problem is, does this mean I can no longer use Designer generated code and have to implement the UI handcoding?