/***ToolBar***/ QToolBar * tlb_ImageOpen; QToolBar * tlb_VideoOpen; QToolBar * tlb_AudioOpen; void MainWindow::createToolbar() { tlb_ImageOpen = addToolBar(tr("Image")); tlb_ImageOpen->addAction(act_openImage); tlb_VideoOpen = addToolBar(tr("Video")); tlb_ImageOpen->addAction(act_openVideo); tlb_AudioOpen = addToolBar(tr("Audio")); tlb_ImageOpen->addAction(act_openAudio); }
原文地址:https://www.cnblogs.com/azbane/p/8657551.html
时间: 2024-10-29 00:42:33