Ok, I understand now. You need to subclass QMenu then. You may then try to embed a QToolBox inside it (by a parent-child relation, not by inheritance - you can't inherit from both QMenu and QToolBox as they both inherit QObject and multiple inheritance of QObject is not allowed).