QT  4.6 Phonon 出错

weixin_38052463 2019-09-19 07:21:10
#include <QtGui/QApplication>#include <Phonon/Phonon>#include <Phonon/VideoPlayer>#include <QUrl>#include "widget.h"int main(int argc, char *argv[]){    QApplication a(argc, argv);    Widget w;    w.setWindowTitle("vidoe player");    w.resize(400,400);    Phonon::VideoPlayer *player  = new Phonon::VideoPlayer(Phonon::VideoCategory,Widget);    player->load(Phonon::MediaSource("../11.rm"));    player->play();    w.show();    return a.exec();}提示:F:/QT exercise/Phonon/main.cpp:2: error: Phonon/Phonon: No such file or directoryF:/QT exercise/Phonon/main.cpp:3: error: Phonon/VideoPlayer: No such file or directoryF:/QT exercise/Phonon/main.cpp:13: error: 'Phonon' has not been declaredF:/QT exercise/Phonon/main.cpp:13: error: 'player' was not declared in this scopeF:/QT exercise/Phonon/main.cpp:13: error: expected type-specifier before 'Phonon'F:/QT exercise/Phonon/main.cpp:13: error: expected ';' before 'Phonon'F:/QT exercise/Phonon/main.cpp:14: error: 'Phonon' has not been declared
...全文
9 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复

430

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧