QMenu *menu = new QMenu(); QAction *action = new QAction("Action", menu); menu->addAction(action); menu->popup(widget->mapToGlobal(QPoint(0,0)));
QToolBar *toolBar = findChildThe package library for QPointer is part of the Qt library for C++. It can be included in a project by adding `#include("toolBar"); QAction *action = new QAction("Action", toolBar); toolBar->addAction(action);