1. 程式人生 > >創建工具條ToolBar

創建工具條ToolBar

pen spa () pre ima blog open 圖片 lba

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

技術分享圖片

創建工具條ToolBar