newAction=new QAction(tr("&New"),this);
newAction->setIcon(QIcon(":/Resource/new.png"));
newAction->setShortcut(tr("Ctrl+N"));
newAction->setStatusTip(tr("Create a new notepad file"));
connect(newAction,SIGNAL(triggered()),this,SLOT(newFile()));
openAction=new QAction(tr("&Open"),this);
openAction->setIcon(QIcon(":/Resource/open.png"));
openAction->setShortcut(tr("Ctrl+O"));
openAction->setStatusTip(tr("Open a notepad file"));
connect(openAction,SIGNAL(triggered()),this,SLOT(open()));
代码是这样的,只是和样例中的文件夹不一样而已,因为VS的都是放在Resource里。可是用Designer设计的时候是可以看到的,用VS打开就看不到了,手动添加也不行。那个地方什么显示都没有,不过鼠标移上去还是有反应的,点击还有效。请问如何解决啊?