![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Qt开发
liuhongshuo2012
这个作者很懒,什么都没留下…
展开
-
QString, wchar_t *, TCHAR, CString和其他字符或字符串类型的
这篇文章是在Blogspot上看到的一篇文章,能够解决QString, wchar_t *, TCHAR和其他字符或字符串类型之间的转换,方便在使用Windows API的时候转换的麻烦。 原文地址:http://tkrotoff.blogspot.com/2010/04/code-snippets-about-qstring-wchart.html //QString to wchar_t转载 2014-10-23 23:30:59 · 699 阅读 · 0 评论 -
Qt开发的sqlite数据库应用出现Driver not loaded
Qt加载数据库时,数据库驱动必须放在sqldrivers文件夹下, 1、将Qt安装程序的plugins/sqldrivers路径复制到EXE文件同根目录下。 2、程序中添加以下代码 QString path = QDir::currentPath(); QApplication::addLibraryPath(path+QString("/plugins"));原创 2015-05-12 18:53:41 · 7856 阅读 · 3 评论 -
qstring wchar char 相互转化
QString to Wchar : 法一:WCHAR pathfile[100]; QString("\\\\.\\PHYSICALDRIVE0").toWCharArray(pathfile); 法二: reinterpret_cast(QString("ParaList").utf16()) Wchar to QString: QString转载 2014-10-30 15:06:09 · 2778 阅读 · 0 评论 -
Qt Windows下 编译mysql驱动 失败
参照连接:http://jingyan.baidu.com/article/27fa7326ffb99146f8271fe0.html 运行后发现编辑失败 无法解析的外部符号 _mysql_query@8 原因:下载的数据库版本和开发环境不一致造成 我的开发环境是64位,下载了64位数据库版本后运行失败 换成32位数据库版本后运行OK原创 2015-12-09 13:37:43 · 569 阅读 · 0 评论