WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names throu
来源:互联网 发布:grub2 引导linux 编辑:程序博客网 时间:2024/05/17 05:59
http://blog.csdn.net/makuiyu/article/details/7417830
用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();
}
0 0
- 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
- 技术普及帖:你刚才在淘宝上买了一件东西
- Ubuntu 不显示时间了
- js对象创建的方式及其优势和不足7
- DP--Longest Valid Parentheses
- poj3160(Tarjan+Spfa)
- WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names throu
- linux c/c++ 后台开发常用组件之:高性能阻塞队列
- 设计模式之装饰模式
- 【DP】 Light OJ 1422 Halloween Costumes
- 【Leetcode】Valid Parentheses in JAVA——一个括号de了20分钟bug的故事
- centos Apache、php、mysql默认安装路径
- 使用栈在O(1)的时间复杂度求最大值
- Crack the Coding Interview[careerup150]正式启动!【倒计时30天】
- I009-黑马程序员_毕向东_Java基础视频教程第01天-09-Hello World的组成部分