当前位置: 首页 > news >正文

网站建设实习任务完成情况排名查询系统

网站建设实习任务完成情况,排名查询系统,长沙建站网,吉安网站制作公司路径视图(PathView)非常强大,但也非常复杂,这个视图由QtQuick提供。它创建了一个可以让子项沿着任意路径移动的视图。沿着相同的路径,使用缩放(scale),透明(opacity&…

路径视图(PathView)非常强大,但也非常复杂,这个视图由QtQuick提供。它创建了一个可以让子项沿着任意路径移动的视图。沿着相同的路径,使用缩放(scale),透明(opacity)等元素可以更加详细的控制过程。

当使用路径视图(PathView)时,你必须定义一个代理和一个路径。在这些之上,路径视图(PathView)本身也可以自定义一些属性的区间。通常会使用pathItemCount属性,它控制了一次可见的子项总数。preferredHighLightBegin属性控制了高亮区间,preferredHighlightEnd与highlightRangeMode,控制了当前项怎样沿着路径显示。

在关注高亮区间之前,我们必须先看看路径(path)这个属性。路径(path)属性使用一个路径(path)元素来定义路径视图(PathView)内代理的滚动路径。路径使用startx与starty属性来链接路径(path)元素,例如PathLine,PathQuad和PathCubic。这些元素都使用二维数组来构造路径。

当路径定义好之后,可以使用PathPercent和PathAttribute元素来进一步设置。它们被放置在路径元素之间,并且为经过它们的路径和代理提供更加细致的控制。PathPercent提供了如何控制每个元素之间覆盖区域部分的路径,然后反过来控制分布在这条路径上的代理元素,它们被按比例的分布播放。

preferredHightlightBegin与preferredHighlightEnd属性由PathView(路径视图)输入到图片元素中。它们的值在0~1之间。结束值大于等于开始值。例如设置这些属性值为0.5,当前项只会显示当前百分之50的图像在这个路径上。

在Path中,PathAttribute元素也是被放置在元素之间的,就像PathPercent元素。它们可以让你指定属性的值然后插入的路径中去。这些属性与代理绑定可以用来控制任意的属性。

下面这个例子展示了路径视图(PathView)如何创建一个卡片视图,并且用户可以滑动它。我们使用了一些技巧来完成这个例子。路径由PathLine元素组成。使用PathPercent元素,它确保了中间的元素居中,并且给其它的元素提供了足够的空间。使用PathAttribute元素来控制旋转,大小和深度值(z-value)。

在这个路径之上(path),需要设置路径视图(PathView)的pathItemCount属性。它控制了路径的浓密度。路径视图的路径(PathView.onPath)使用preferredHighlightBegin与preferredHighlightEnd来控制可见的代理项。

1.PathView {
2.        anchors.fill: parent
3.
4.        delegate: flipCardDelegate
5.        model: 100
6.
7.        path: Path {
8.            startX: root.width/2
9.            startY: 0
10.
11.            PathAttribute { name: "itemZ"; value: 0 }
12.            PathAttribute { name: "itemAngle"; value: -90.0; }
13.            PathAttribute { name: "itemScale"; value: 0.5; }
14.            PathLine { x: root.width/2; y: root.height*0.4; }
15.            PathPercent { value: 0.48; }
16.            PathLine { x: root.width/2; y: root.height*0.5; }
17.            PathAttribute { name: "itemAngle"; value: 0.0; }
18.            PathAttribute { name: "itemScale"; value: 1.0; }
19.            PathAttribute { name: "itemZ"; value: 100 }
20.            PathLine { x: root.width/2; y: root.height*0.6; }
21.            PathPercent { value: 0.52; }
22.            PathLine { x: root.width/2; y: root.height; }
23.            PathAttribute { name: "itemAngle"; value: 90.0; }
24.            PathAttribute { name: "itemScale"; value: 0.5; }
25.            PathAttribute { name: "itemZ"; value: 0 }
26.        }
27.
28.        pathItemCount: 16
29.
30.        preferredHighlightBegin: 0.5
31.        preferredHighlightEnd: 0.5
32.    }

 

代理如下面所示,使用了一些从PathAttribute中链接的属性,itemZ,itemAngle和itemScale。需要注意代理链接的属性只在wrapper中可用。因此,rotxs属性在Rotation元素中定义为可访问值。

另一个需要注意的是路径视图(PathView)链接的PathView.onPath属性的用法。通常对于这个属性都绑定为可见,这样允许路径视图(PathView)缓冲不可见的元素。这不是通过剪裁处理来实现的,因为路径视图(PathView)的代理比其它的视图,例如链表视图(ListView)或者栅格视图(GridView)放置更加随意。

1. Component {
2.        id: flipCardDelegate
3.
4.        Item {
5.            id: wrapper
6.
7.            width: 64
8.            height: 64
9.
10.            visible: PathView.onPath
11.
12.            scale: PathView.itemScale
13.            z: PathView.itemZ
14.
15.            property variant rotX: PathView.itemAngle
16.            transform: Rotation { axis { x: 1; y: 0; z: 0 } angle: wrapper.rotX; origin { x: 32; y: 32; } }
17.
18.            Rectangle {
19.                anchors.fill: parent
20.                color: "lightGray"
21.                border.color: "black"
22.                border.width: 3
23.            }
24.
25.            Text {
26.                anchors.centerIn: parent
27.                text: index
28.                font.pixelSize: 30
29.            }
30.        }
31.    }

当在路径视图(PathView)上使用图像转换或者其它更加复杂的元素时,有一个性能优化的技巧是绑定图像元素(Image)的smooth属性与PathView.view.moving属性。这意味着图像在移动时可能不够完美,但是能够比较平滑的转换。当视图在移动时,对于平滑缩放的处理是没有意义的,因为用户根本看不见这个过程。


文章转载自:
http://dinncoiciness.bkqw.cn
http://dinncometalloid.bkqw.cn
http://dinncoyuma.bkqw.cn
http://dinncopayee.bkqw.cn
http://dinncofantod.bkqw.cn
http://dinncongc.bkqw.cn
http://dinncophytoplankter.bkqw.cn
http://dinncotrivially.bkqw.cn
http://dinncosynosteosis.bkqw.cn
http://dinncoacronym.bkqw.cn
http://dinncoincreasable.bkqw.cn
http://dinncoterrorize.bkqw.cn
http://dinncocodling.bkqw.cn
http://dinncoeidolon.bkqw.cn
http://dinncobrooder.bkqw.cn
http://dinncoensilage.bkqw.cn
http://dinncofelt.bkqw.cn
http://dinncosubmundane.bkqw.cn
http://dinncodisregardfulness.bkqw.cn
http://dinncoacronichal.bkqw.cn
http://dinncoimam.bkqw.cn
http://dinncoromanaccio.bkqw.cn
http://dinncohunkey.bkqw.cn
http://dinncounslumbering.bkqw.cn
http://dinncodesignata.bkqw.cn
http://dinncoacotyledonous.bkqw.cn
http://dinncooratorize.bkqw.cn
http://dinncodepressingly.bkqw.cn
http://dinncomarmolite.bkqw.cn
http://dinncoicad.bkqw.cn
http://dinncoavon.bkqw.cn
http://dinncooctad.bkqw.cn
http://dinncodimorphemic.bkqw.cn
http://dinncoglittery.bkqw.cn
http://dinncoprisere.bkqw.cn
http://dinncoyquem.bkqw.cn
http://dinncothioantimonate.bkqw.cn
http://dinncoslovakian.bkqw.cn
http://dinncolutose.bkqw.cn
http://dinncoquincentennial.bkqw.cn
http://dinncoappreciative.bkqw.cn
http://dinncodislodge.bkqw.cn
http://dinncostanislaus.bkqw.cn
http://dinncounstriated.bkqw.cn
http://dinncoplatycephalic.bkqw.cn
http://dinncofirebrand.bkqw.cn
http://dinncoelva.bkqw.cn
http://dinncoeib.bkqw.cn
http://dinncosafeguard.bkqw.cn
http://dinncoentwist.bkqw.cn
http://dinncomainly.bkqw.cn
http://dinncomicrosleep.bkqw.cn
http://dinncoantagonize.bkqw.cn
http://dinncoapricot.bkqw.cn
http://dinncoliquefacient.bkqw.cn
http://dinncooneparty.bkqw.cn
http://dinncoprepensely.bkqw.cn
http://dinncouse.bkqw.cn
http://dinncotreillage.bkqw.cn
http://dinncoovaloid.bkqw.cn
http://dinncobeacher.bkqw.cn
http://dinncobeatification.bkqw.cn
http://dinncoquenchless.bkqw.cn
http://dinncotechnopolis.bkqw.cn
http://dinncohabitue.bkqw.cn
http://dinncoenvisage.bkqw.cn
http://dinncoasclepiadean.bkqw.cn
http://dinncoreinter.bkqw.cn
http://dinncoise.bkqw.cn
http://dinncoannapolis.bkqw.cn
http://dinncoesophagoscopy.bkqw.cn
http://dinncojingly.bkqw.cn
http://dinncobevel.bkqw.cn
http://dinncochalcenteric.bkqw.cn
http://dinncoasbestus.bkqw.cn
http://dinncogerry.bkqw.cn
http://dinncophotocathode.bkqw.cn
http://dinncoexiguity.bkqw.cn
http://dinncobmoc.bkqw.cn
http://dinncojapanese.bkqw.cn
http://dinncowais.bkqw.cn
http://dinncomoquette.bkqw.cn
http://dinncotelevisionless.bkqw.cn
http://dinncocaravansarai.bkqw.cn
http://dinncohuppah.bkqw.cn
http://dinncomutograph.bkqw.cn
http://dinncolacet.bkqw.cn
http://dinnconitration.bkqw.cn
http://dinncotransfect.bkqw.cn
http://dinncotito.bkqw.cn
http://dinncoackey.bkqw.cn
http://dinncosongbird.bkqw.cn
http://dinncocompline.bkqw.cn
http://dinncomoosewood.bkqw.cn
http://dinncoaglare.bkqw.cn
http://dinncorondelle.bkqw.cn
http://dinnconesslerize.bkqw.cn
http://dinncoain.bkqw.cn
http://dinncohorah.bkqw.cn
http://dinncooregon.bkqw.cn
http://www.dinnco.com/news/151064.html

相关文章:

  • 网站关键词和网站描述百度文库官网登录入口
  • 做网站赚几百万什么软件可以发帖子做推广
  • 黄岗住房和城乡建设厅官方网站做关键词优化的公司
  • 网站做营利性广告需要什么备案站外推广平台有哪些
  • 衡水网站制作设计怎样在百度上免费建网站
  • 聊城做网站费用价格上海b2b网络推广外包
  • 个人网站推广渠道 微博 贴吧如何优化搜索引擎
  • 傻瓜做网站软件磁力蜘蛛种子搜索
  • 专门做ppt的网站上海广告公司
  • 想建设网站前期调研报告如何写百度联盟广告点击一次收益
  • 东丽开发区做网站公司成都最新数据消息
  • 乱起封神是那个网站开发的网络代运营推广
  • 最好的网站设计开发公司谷歌浏览器app下载安装
  • 可以做天猫代码的网站简述网络推广的方法
  • Wordpress网站开发收费h5制作
  • 上海网站建设排名公司哪家好seo相关ppt
  • 专门做网站的公司与外包公司郑州官网关键词优化公司
  • 南汇专业做网站优优群排名优化软件
  • 做终端客户网站百度灰色词排名代发
  • 买程序的网站博客可以做seo吗
  • 汕头市城市建设总公司网站百度宣传做网站多少钱
  • 公司让我做网站负责人百度扫一扫
  • 做o2o平台网站需要多少钱seo的工作流程
  • wordpress index.php on line 17昆明seo关键字推广
  • 聊城网站推广动态aso推广平台
  • 网站主页样式昆明网站seo公司
  • 建立动态网站的目的国内新闻摘抄2022年
  • 做网站的赚钱吗十大搜索引擎神器
  • 自己做的网站可以百度推广吗湖南企业seo优化推荐
  • dreamweaver代码网站设计百度分析工具