我试图使用派生类指针调用QMenu的addMenu但抛出错误,cn有人指出错误
csMenu * editMenu = new csMenu();
QMenu *preferenceMenu = new QMenu();
preferenceMenu->addAction(new QAction(tr("&Split Plot"), this));
preferenceMenu->addAction(new QAction(tr("&Split "), this));
editMenu->addMenu(preferenceMenu);
QFont font("Segoe UI", 12);//Museo Sans 500
preferenceMenu->setFont(font);
字体也未设置为子菜单