Skip to content

What We Know About CustomContextMenu

russ_hensel edited this page Feb 15, 2026 · 1 revision

You can create a context menu by using special code for it..... or by capturing the mouse right click. In this code we do it both ways, but do not do it both ways at the same time ( as in one of the mutations ) ... More description coming here later.

In this tab we have applied the menu to a qtext edit but it can be applied to any qwidget.

In this example the code is in the widget holding an inner widget that has the menu, you might instead subclass the inner widget and put the code in it. Perhaps we will code that in the future.

Clone this wiki locally