求教一个想不通的问题
void MyDlg::inisetting(){ int i = 3; switch(i) { case 1:ui.label_volpic->setPixmap(QPixmap("D:/prj/vol_jpg/1.PNG")); case 2:ui.label_volpic->setPixmap(QPixmap("D:/prj/vol_jpg/2.PNG")); case 3:ui.label_volpic->setPixmap(QPixmap("D:/prj/vol_jpg/3.PNG")); case 4:ui.label_volpic->setPixmap(QPixmap("D:/prj/vol_jpg/4.PNG")); case 5:ui.label_volpic->setPixmap(QPixmap("D:/prj/vol_jpg/5.PNG")); case 6:ui.label_volpic->setPixmap(QPixmap("D:/prj/vol_jpg/6.PNG")); default:break; }}