mainwindow.cpp:523:37: error: incomplete type ‘QUrl’ used in nested name specifier
QDesktopServices::openUrl(QUrl::fromLocalFile("/home/主目录/文档"));
代码:
void MainWindow::on_pushButton_2_clicked()
{
QDesktopServices::openUrl(QUrl::fromLocalFile("/home/主目录/文档"));
}