解:菜单-》qt->create basic .pro file-》在.pro文件下加入QT +=multimedia 若还是不行则我的项目-》鼠标右键-》qt project setting-》Qt modtle-》勾选multimedia