更多 日志
- Qt5 C++源码中使用中文的简单步骤
-
Qt5 C++源码中使用中文的简单步骤|
默认分类 - 2014-08-28 05:36
转自:http://www.qtcn.org/bbs/read-htm-tid-54663.html
本文不讲任何道理,当你在Qt5的C++源文件内使用中文时,你只需按顺序简单照做即可。(不止是中文,其实你完全可以在代码中使用日韩法俄语等等各国语言)
0. [通用] 源文件保存为带BOM的UTF-8格式[/backcolor .. 阅读全文»
- QModelIndex
-
The QModelIndex class is used to locate data in a data model.The index is used by item views, delegates, and selectionmodels to locate an item in the model.
默认分类 - 2012-10-20 10:19
Aselection model belonging to one view can be obtained using the view's selectionModel() function, and sharedbetween many views with setSelectionModel(),so the construction of new selection models is generally not required.
weconstruct an instance of a custom table model with 32 items in total, and opena table view onto its data. The tab .. 阅读全文»