WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names throu
来源:互联网 发布:苹果有淘宝卖家版吗 编辑:程序博客网 时间:2024/06/05 20:54
用Qt写了个播放器,却出现了以下警告:
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
原来是没有给application命名,只要在QApplication a(argc,argv)下加入a.setApplicationName("XXX");即可。
如下:
#include <QtGui/QApplication>
#include <QTextCodec>
#include "player.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setApplicationName("Player");
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));//设置编码格式
Player w;
w.show();
return a.exec();
}
- WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names throu
- WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names throu
- WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names thro
- Error: `output.path` needs to be an absolute path or `/`.
- warning C4251: 'm_ListInfo' : struct 'DuiLib::tagTListInfoUI' needs to have dll-interface to be used
- Two output file names resolved to the same output path
- warning C4251: 'vectortemp::m_Vector' : class 'std::vector' needs to have dll-interface to be used by clients of class 'vectorte
- 去除Warning C4251 “class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class
- The working copy needs to be upgraded
- Your PC needs to be repaired
- The working copy needs to be upgraded
- 'chromedriver' executable needs to be in PATH.
- VS2005 warning C4251 needs to have dll-interface
- warning C4251 needs to have dll-interface解决办法
- warning C4251 needs to have dll-interface解决办法
- warning C4251 needs to have dll-interface解决办法
- ORA-01194: file 1 needs more recovery to be consistent
- SVN报错The working copy needs to be upgraded
- phonon backend plugin could not be loaded
- 关于CCSpriteSheet报错问题
- http://acm.hdu.edu.cn/showproblem.php?pid=1496
- SuseLinux上配置Telnet服务,重启xinetd守护进程时的异常
- git服务端配置
- WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names throu
- POJ 1182 && NYOJ 207 并查集扩展
- C# WinForm TreeView用法总结
- 在tomcat下html乱码 问题解决
- delphi常用函数三
- Android4.0 StatusBar状态栏启动
- 斐波那契数列算法
- C# WinForm TreeView改变选中节点颜色,失去焦点时选中节点仍突显。
- CFileDialog的各种风格的目录/文件夹选择对话框---(CFolderDialog)