A popup menu in Qt is called a context menu.

Implement the context menu events and signals.