QAction *hideAction = new QAction(tr(" 隐藏"),this); addAction(hideAction); setContextMenuPolicy(Qt::ActionsContextMenu);