qt
lcy9819
这个作者很懒,什么都没留下…
展开
-
在centos下安装 qt
今天下载了qt-sdk-linux-x86-opensource-2010.04.bin 安装后,可以正常启动qt creator了。可是编译qt一个新建简单程序时却发现链接有错误: undefined reference to "FcFreeTypeQueryFace" 在网上搜索,需要下载fontconfig,于是到网站下载2.8版本:原创 2010-09-15 12:57:00 · 646 阅读 · 0 评论 -
添加工程 QtNetwork 错误
<br />问题:<br /> QtNetwork 错误: 没有那个文件或目录(qt 工程配置问题)<br /> <br />解决:<br /> 这是工程配置问题<br /> 在.pro中加 QT += network<br /> 问题解决原创 2010-09-29 17:22:00 · 939 阅读 · 0 评论 -
如何存储中文到文件中,解决乱码问题
<br />void MainWindow::saveFile()<br />{<br /> QStringList lines;<br /> lines.append("lines 1 ");<br /> lines.append(QString::fromLocal8Bit("中文测试x"));<br /> QFile file( "/root/program/text1.txt" );<br /> if ( file.open( QIODevice::WriteOnly原创 2010-09-29 17:21:00 · 760 阅读 · 0 评论 -
qt 下判断文件或目录是否存在?
<br />qt 下判断文件或目录是否存在<br /> <br />bool QFileInfo::exists () const<br />Returns true if the file exists; otherwise returns false.<br /> <br />bool QFileInfo::isDir () const<br />Returns true if this object points to a directory or to a symbolic link to a di转载 2010-09-29 17:23:00 · 11978 阅读 · 1 评论