首页 > TAG信息列表 > setIcon

Qt_给菜单栏选项添加图标,添加到工具栏中

//设置工具栏,添加图标 ui.action_New->setIcon(QIcon(IMAGE_PATH("new.png"))); ui.action_Import->setIcon(QIcon(IMAGE_PATH("open.png"))); ui.action_Save->setIcon(QIcon(IMAGE_PATH("save.png"))); ui.action_Stop->