Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
右键点击工具栏的时候会出现一个默认的勾选菜单,点击勾选菜单的选项可以可以隐藏/显示工具栏,如何修改这个默认勾选菜单的文本内容啊?就是在勾号后面显示“隐藏/显示”这样的文本内容
求关注啊
已解决: 重写QMainWindow的createPopupMenum();
QMenu MainWindow::createPopupMenu() { QMenu menu = QMainWindow::createPopupMenu(); QList<QAction> list = menu->actions(); list.at(0)->setText(""); list.at(1)->setText("*); return menu; }