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

手机网站建设哪个营销型网站建设企业

手机网站建设哪个,营销型网站建设企业,网站推广是做什么的,2345浏览器网址大全在QML中所有的可视项目都继承自Item,虽然Item本身没有可视化的外观,但它定义了可视化项目的所有属性。 Item可以作为容器使用: Item{Rectangle{id:retc}Rectangle{id:retc1}Rectangle{id:retc2}Rectangle{id:retc3}} item拥有children属性…

在QML中所有的可视项目都继承自Item,虽然Item本身没有可视化的外观,但它定义了可视化项目的所有属性。

Item可以作为容器使用:

Item{Rectangle{id:retc}Rectangle{id:retc1}Rectangle{id:retc2}Rectangle{id:retc3}}

item拥有children属性和resources

  • children可以获取可见的孩子列表
  • resources 包含了不可见的资源

children的使用:

如果只有一个元素的话,可以不用使用children

  • 使用children[   ]
  • 有多个使用,隔开
Item{children: [Text {id: t0;text: "text0"},Text {id: t1;text: "text1"},Text {id: t2;text: "text2"},Text {id: t3;text: "text3"},Text {id: t4;text: "text4"}]Component.onCompleted: {console.log("index 0的内容为:",children[0].text)console.log("index 1的内容为:",children[1].text)console.log("index 2的内容为:",children[2].text)console.log("index 3的内容为:",children[3].text)console.log("index 4的内容为:",children[4].text)}}

 resources 的使用:

resources: [Timer{}]

Item中还有一个data默认属性,允许在项目中将可见和不可见的资源自由混合,由于data是默认 属性,所以可以省略data标签。

Item{Text {id: t0;text: "text0"}Text {id: t1;text: "text1"}Text {id: t2;text: "text2"}Text {id: t3;text: "text3"}Text {id: t4;text: "text4"}Timer{}Component.onCompleted: {console.log("index 0的内容为:",children[0].text)console.log("index 1的内容为:",children[1].text)console.log("index 2的内容为:",children[2].text)console.log("index 3的内容为:",children[3].text)console.log("index 4的内容为:",children[4].text)}}

 opacity(透明度)

  • 0.0 全透明    
  • 1.0 完全不透明
 Item{Rectangle{width: 100height: 100color: "red"opacity: 0}Rectangle{x:110y:0width: 100height: 100color: "red"opacity: 0.2}Rectangle{x:220y:0width: 100height: 100color: "red"opacity: 0.5}Rectangle{x:330y:0width: 100height: 100color: "red"opacity: 1.0}
}

 堆叠顺序

Item拥有一个z属性,可以设置堆叠顺序,默认的堆叠顺序为0,z数值大的优先绘制。

如果都没设置的话,根据项目顺序(由上到下)绘制。

Item{Rectangle{width: 100height: 100color: "red"}Rectangle{width: 100height: 100color: "blue"}
}

Item{    Rectangle{z:1width: 100height: 100color: "red"}Rectangle{width: 100height: 100color: "blue"}
}

 定位子项目和坐标映射

  • Item中 提供childAt(real x,real y)函数来返回点(x,y)处的子项目,没有的话返回null。
  • mapFromItem(Item item,real x,real y):项目坐标系中的点 (x, y)映射到此项的坐标系,并返回与映射坐标匹配的点
  • mapToItem(Item item,real x,real y) :将该项目坐标系中的点(x、y)映射到项目的坐标系,并返回与映射坐标匹配的点。

transitions过渡)

使用transitions来存储项目的过渡列表

Item{id:item2transitions :[Transition {},Transition {},Transition {}]}

states(状态)

使用states来保存该项的可能状态列表

Rectangle {id: rootwidth: 100; height: 100states: [State {name: "red_color"//状态1PropertyChanges { target: root; color: "red" }},State {name: "blue_color"//状态2PropertyChanges { target: root; color: "blue" }}]
}

常见的一些属性:

rotation旋转
smooth平滑处理(默认true)
scale缩放
parent父类
opacity透明
focus焦点
clip剪辑(默认false)
antialiasing抗齿状
layer.enabled是否分层

layer.enabled 是否分层

 非分层不透明度:

Item{opacity: 0.5width: 250height: 250Rectangle{id:rect1;width:100;height: 100;color:"red" ;border.width:1}Rectangle{id:rect2;width:100;height: 100;color: "blue";x:50;y:50;border.width:1}}

分层不透明度:

Item{opacity: 0.5layer.enabled: truewidth: 250height: 250Rectangle{id:rect1;width:100;height: 100;color:"red" ;border.width:1}Rectangle{id:rect2;width:100;height: 100;color: "blue";x:50;y:50;border.width:1}}

http://www.tj-hxxt.cn/news/61419.html

相关文章:

  • 公司的网站怎么运营二十条优化措施全文
  • 怎样拿电脑做网站郑州seo代理外包
  • 网站开发量计算百度广告联盟怎么赚钱
  • 网页设计和网站开发哪个好500个游戏推广群
  • 网站开发员招聘品牌营销策划与管理
  • 烟台专业做网站公司哪家好免费源码资源源码站
  • 柳州正规网站制作推广平台网站热狗网
  • 自己做的网站不显示图片营销模式
  • ps切片做网站项目推广平台有哪些
  • 南京网站建设网站制作个人网站设计内容
  • wordpress不支持中文seo主要优化
  • 源码编程器下载长沙正规竞价优化推荐
  • wordpress分类静态免费seo
  • java做的网站怎么打开网页百度客服
  • 做网站用什么软件语言如何seo搜索引擎优化
  • phpmysql动态网站开发与全程实例站长工具seo综合查询columbu cat
  • 网站功能建设与栏目划分电子商务网站推广
  • 建设网站策划seo研究中心培训机构
  • 网站建设前端学什么语言衡水seo排名
  • 网站的设计方法申请网站域名要多少钱
  • 专门做求职课程的网站网站排名优化培训课程
  • 莱州市建设局网站google手机官网
  • 深圳哪做网站杭州关键词优化测试
  • 贵阳市 网站建设什么叫百度竞价推广
  • 网站建设需要经历什么步骤百度快速优化软件
  • wordpress本地ftp广州谷歌seo
  • 网站搭建php源码惠州企业网站建设
  • 网站 用什么语言seo公司怎么推广宣传
  • 新乡网站建设哪家权威seoul
  • 黄岐做网站实体店100个营销策略