3 #include <QWidgetAction>
13 QMenu::showEvent(event);
19 QMenu::hideEvent(event);
28 setCursor(Qt::PointingHandCursor);
31 QWidgetAction *actionWidget =
new QWidgetAction(
m_menu);
35 m_menu->addAction(actionWidget);
37 connect(
this, SIGNAL(clicked()), SLOT(
popupMenu()));
48 m_menu->setWindowFlags(
m_menu->windowFlags() | Qt::FramelessWindowHint);
49 m_menu->setAttribute(Qt::WA_TranslucentBackground);
55 QPoint pos = mapToGlobal(QPoint(0, 0));
static const QString MenuStyle04