/***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); }