首页| 论坛| 消息

标题:QML实现分页显示
作者:ycj211
日期:2016-05-19 15:31
内容:

PageView.qml
代码:
import QtQuick 2.0
import QtQuick.Controls.Styles 1.2
import QtQuick.Controls 1.2
Rectangle{
id:root
color:"#DD202020"
width: 400
height: 450
//数据模型
property var json:
[
[
{ "title": 1, "imagePath": "author.png","des":"这是描述" },
{ "title": 2, "imagePath": "author.png" ,"des":"这是描述"},
{ "title": 3, "imagePath": "author.png" ,"des":"这是描述"},
{ "title": 4, "imagePath": "author.png","des":"这是描述" },
{ "title": 5, "imagePath": "author.png","des":"这是描述" }
],
[
{ "title": 6, "imagePath": "author.png" ,"des":"这是描述"},
{ "title": 7, "imagePath": "author.png" ,"des":"这是描述"},
{ "title": 8, "imagePath": "author.png& ..


#1 [ycj211 05-19 16:04]

#2 [nigoole 05-19 20:54]

#3 [learn0801 05-20 08:58]
不错不错
#4 [lsyzsl 06-14 14:11]
给了源代码还是创建不出来这样的。
#5 回 lsyzsl 的帖子 [ycj211 06-26 20:51]
lsyzsl:给了源代码还是创建不出来这样的。 (2016-06-14 14:11) 
已发送你邮箱!

<< 1 2 >> (1/2)

回复 发表
主题 版块