为什么我错过了Qt的多媒体功能? [英] Why am I missing the Qt Multimedia functionality?
问题描述
我是新来的Qt和我创建一个简单的应用程序,这将播放的音频文件。
我意识到,我缺乏的Qt多媒体API音频,当我说:
I am new to Qt and I'm creating a simple application which will playback an audio file. I realized that I am lacking the Qt Multimedia API for audio when I wrote:
#include <QAudioOutput>
..和我得到的是有没有这样的文件。
..and I get that there is no such file.
我下载了最新的Qt SDK框架,我无法找到一个方法来添加这些API。我使用Qt Creator的IDE。
I downloaded the latest Qt SDK framework and I can't find a way to add these APIs. I am using Qt creator IDE.
有没有办法让多媒体功能的附加或一些其他的方式?
IS there a way to get the multimedia functionality working maybe as an add-on or some other way?
感谢。
推荐答案
没有更多的信息很难说,但可能你的include路径只是不完整的。阅读 http://doc.qt.nokia.com/4.7-snapshot/qtmultimedia。 HTML 并一定要添加
Without more info it's hard to say, but possibly your include paths are just incomplete. Read http://doc.qt.nokia.com/4.7-snapshot/qtmultimedia.html and be sure to add
QT += multimedia
到您的项目文件。
to your project file.
这篇关于为什么我错过了Qt的多媒体功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!