64 Star 180 Fork 34

qtguide / qtguide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ch03-00.htm 2.10 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
qtguide 提交于 2015-04-29 22:22 . ch3.0
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>ch03-00</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="thumbnailviewer.css" type="text/css" />
<script src="thumbnailviewer.js" type="text/javascript">
/***********************************************
* Image Thumbnail Viewer Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<div class="os1">第3章 字符串和字符编码</div>
<br />
在开始具体的窗体、控件、布局等图形界面编程之前,本章先学习一下字符编码方式和字符串的使用。
字符串是图形界面的基石,虽然控件和图标看起来直观,但还是必定要使用字符串来显示信息的。
源代码文件里的字符编码通常有 ANSI 多字节编码和 Unicode 系列编码,字符编码影响程序运行时的文字显示,
如果处理不好就容易乱码,3.1 节介绍字符编码,并通过简单例子看看命令行程序乱码时的样子。
3.2 节测试 Qt 程序里的字符编码,并纠正乱码。3.3 节介绍字符串类 QString 常见使用方式。
最后 3.4 节介绍字节数组类 QByteArray 的用法。
<br />
<br />
<br />
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 40%;"><div style="text-align: center;"><a href="ch02-06.htm"><img class="pic" style="width: 32px; height: 32px;" alt="prev" src="images/pics/prev.png" /></a></div></td>
<td style="width: 20%;"><div style="text-align: center;"><a href="contents.htm"><img class="pic" style="width: 32px; height: 32px;" alt="contents" src="images/pics/contents.png" /></a></div></td>
<td style="width: 40%;"><div style="text-align: center;"><a href="ch03-01.htm"><img class="pic" style="width: 32px; height: 32px;" alt="next" src="images/pics/next.png" /></a></div></td>
</tr>
</tbody>
</table>
</html>
HTML
1
https://gitee.com/qtguide/qtguide.git
git@gitee.com:qtguide/qtguide.git
qtguide
qtguide
qtguide
master

搜索帮助

14c37bed 8189591 565d56ea 8189591