社区新版论坛已上线,点击立即前往!使用 openKylin 账户授权登录,解锁更多体验!

openKylin论坛

 找回密码

QML PathView 效果 [复制链接]

ListModel {    id: model    ListElement { fruit: "Bilberry";                   picture: "http://upload.wikimedia.org/wikipedia/commons/9/91/Norwegian_blueberries.jpg" }    ListElement { fruit: "Kumquat";                   picture: "http://upload.wikimedia.org/wikipedia/commons/8/82/Kumquat.jpeg" }    ListElement { fruit: "Grapefruit"; picture:                   "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bb/Table_grapes_on_white.jpg/250px-Table_grapes_on_white.jpg" }}Component {    id: delegate    Item {        width: 100; height: 100        scale: PathView.scale        Column { Image { anchors.fill: parent; source: picture;  }                  Text { text: fruit; font.pointSize: 24; }        }    }}PathView {    anchors.fill: parent    model: model;    delegate: delegate    path: Path {        startX: 100; startY: 100        PathAttribute { name: "scale"; value: 0.5 }        PathLine { x:200; y:200 }        PathAttribute { name: "scale"; value: 1.0 }        PathLine { x:300; y:100 }        PathLine { x:100; y:100 }    }}
楼主
发表于 2013-7-5 08:30:30
回复

使用道具 举报

QML PathView 效果 [复制链接]

建议直接插入代码 这样格式会乱滴{:6_123:}
沙发
发表于 2013-7-5 08:36:49
回复

使用道具 举报

QML PathView 效果 [复制链接]

{:3_55:}是呀。。好歹微调下格式嘛,LZ。。
板凳
发表于 2013-7-8 08:41:01
回复

使用道具 举报

openKylin

GMT+8, 2024-6-26 11:47 , Processed in 0.025371 second(s), 17 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表