1窗体设置菜单栏属性为自定义菜单栏setContextMenuPolicy(Qt::CustomContextMenu);
2为自定义的菜单栏连接信号槽
connect(this,SIGNAL(customContextMenuRequested(const QPoint &)),
1窗体设置菜单栏属性为自定义菜单栏setContextMenuPolicy(Qt::CustomContextMenu);
2为自定义的菜单栏连接信号槽
connect(this,SIGNAL(customContextMenuRequested(const QPoint &)),