If you set the contextMenuPolicy to ActionsMenuContext make sure you've actually set some QActions for the widget.
If you set the contextMenuPolicy to CustomContextMenu make sure you've connected to the customContextMenuRequested signal. You will have to show the context menu manually there.