QComboBox 全部用QLabel替换,只作为显示路径之用。
在每个QLabel后加个QPushButton,
connect (srcFileBtn, SIGNAL(clicked()), this, SLOT(openFileDlg()));
// Define open file , result to set a file path
void MainWindow::openFileDlg(){
QString file = QFileDialog::getOpenFileName(
"/home",
"Images (*.png *.xpm *.jpg)",
this);
// 等等 自己使用返回 的 文件路径 flie 显示到 QLabel上 ,并用来之后的处理文件
}