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

教育加盟培训网站建设代理公司注册要提供什么资料

教育加盟培训网站建设,代理公司注册要提供什么资料,正版搜索引擎优化,如何黑网站在QML中所有的可视项目都继承自Item#xff0c;虽然Item本身没有可视化的外观#xff0c;但它定义了可视化项目的所有属性。 Item可以作为容器使用#xff1a; 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: redopacity: 0}Rectangle{x:110y:0width: 100height: 100color: redopacity: 0.2}Rectangle{x:220y:0width: 100height: 100color: redopacity: 0.5}Rectangle{x:330y:0width: 100height: 100color: redopacity: 1.0} } 堆叠顺序 Item拥有一个z属性可以设置堆叠顺序默认的堆叠顺序为0z数值大的优先绘制。 如果都没设置的话根据项目顺序由上到下绘制。 Item{Rectangle{width: 100height: 100color: red}Rectangle{width: 100height: 100color: blue} } Item{ Rectangle{z:1width: 100height: 100color: red}Rectangle{width: 100height: 100color: blue} } 定位子项目和坐标映射 Item中 提供childAtreal xreal y函数来返回点xy处的子项目没有的话返回null。mapFromItemItem itemreal xreal y将项目坐标系中的点 x y映射到此项的坐标系并返回与映射坐标匹配的点mapToItemItem itemreal xreal 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平滑处理默认truescale缩放parent父类opacity透明focus焦点clip剪辑默认falseantialiasing抗齿状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.eeditor.cn/news/121523/

相关文章:

  • 网站兼容所有浏览器电脑建设网站服务器
  • 怎样大力开发公司网站建设搜索引擎排行榜前十名
  • 网站开发时间进度表购买服务器做网站
  • 课题组网站建设网站开发计算机语言的比较
  • 做买家秀的网站站酷网如何接单
  • 前端网站开发实例视频北京想象力网站建设公司
  • 商城网站制作多少钱宁波专业做网站的公司哪家好
  • 免费网站空间可上传网站建站历史查询
  • 深圳网站制作网络建设公司网络广告的类型
  • 深圳做网站外包公司有哪些企业小程序开发公司
  • 文登建设局网站网站建设费 账务处理
  • 做网站属于广告公司吗有效的网站建设
  • 中国建设银行遵义市分行网站网站如何做水晶按钮
  • 雷州网站地方门户系统 哪家好
  • 济南建设网站的公司蓬莱市住房和规划建设管理局网站
  • 购买的网站怎么看网站空间大小wordpress cookies
  • 关于com的网站外贸网站首页
  • 厦门建设与管理局网站wordpress不用缓存
  • 代做土木毕业设计网站网站加产品分类
  • 网站开发课程学习仓储设备东莞网站建设
  • 开发公司工程部经理述职报告做网站优化的话术
  • 房地产电商网站建设上海自贸区注册公司
  • 邯郸公司做网站如何创建wordpress数据库
  • 相亲网站什么叫网落营销
  • 用vps建网站备案长沙企业网站seo
  • 河南联通 网站备案商标设计怎么收费
  • 王建设个人网站数字营销是什么专业
  • 网站访问量统计工具做交通锁具网站碟刹锁
  • 请上传网站应用水印图片光伏电站建设的行业网站
  • 辽阳县住房和城乡建设局网站投资管理公司注册条件和要求