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

郑州网站科技google下载官方版

郑州网站科技,google下载官方版,摄影网站做画册,网站内容怎么做Qml-TabBar类使用 TabBar的概述 TabBar继承于Container 由TabButton进行填充#xff0c;可以与提供currentIndex属性的任何容器或布局控件一起使用#xff0c;如StackLayout 或 SwipeView#xff1b;contentHeight : real:TabBar的内容高度#xff0c;用于计算标签栏的隐…Qml-TabBar类使用 TabBar的概述 TabBar继承于Container 由TabButton进行填充可以与提供currentIndex属性的任何容器或布局控件一起使用如StackLayout 或 SwipeViewcontentHeight : real:TabBar的内容高度用于计算标签栏的隐式高度contentWidth : realTabBar的内容宽度用于计算标签栏的隐式宽度position : enumeration如果TabBar用于Application或Page 组件TabBar的位置 SplitView的实例代码 import QtQuick import QtQuick.Controls import QtQuick.Layouts//TabBar继承于Container, 由TabButton填充可于提供currentIndex属性的容器或者布局器使用如StackLayout 或 SwipeViewItem {id: idTabBarRootRectangle{anchors.fill: parentTabBar{id:idTabBar//指明TabBar的高度和宽度contentHeight: 40contentWidth: parent.width//如果没有明确宽度TabButton会均分或者由TabButton的隐式宽度的和来推导TabBar的宽度TabButton{text: (Tab1)//width: 100implicitWidth: 100onClicked: {console.log(tabButton index ,TabBar.index);}}TabButton{//width: 100implicitWidth: 100text: (Tab2)}TabButton{//width: 100implicitWidth: 100text: (Tab3)}onCurrentIndexChanged: {console.log(cur index ,idTabBar.currentIndex,contentWidth ,idTabBar.contentWidth);console.log(conttentHeight ,idTabBar.contentHeight)var child idTabBar.contentChildren; //返回一个list 数据console.log(child size ,child.length); //可以使用list 的length属性获取 list的长度}background:Rectangle{anchors.fill: parent;color:yellowborder.width:1border.color: red;}}//栈布局只显示currentIndex对应的ItemStackLayout{//需要在StackLayout中做布局控制StackLayout的区域anchors.top: idTabBar.bottomanchors.bottom: parent.bottomwidth: parent.widthcurrentIndex: idTabBar.currentIndex//插入于TabBar 中TabButton 对应的内容区域Text{text: I am Tab1 verticalAlignment: Text.AlignVCenterhorizontalAlignment: Text.AlignHCenter;}Text{text: I am Tab2 verticalAlignment: Text.AlignVCenterhorizontalAlignment: Text.AlignHCenter;}Text{text: I am Tab3 verticalAlignment: Text.AlignVCenterhorizontalAlignment: Text.AlignHCenter;}}} } TabBar实例代码运行结果如下
http://www.hkea.cn/news/14436489/

相关文章:

  • 重庆建设工程招标信息网站施工企业对安全隐患不采取措施
  • 如何做自己网站雅虎搜索引擎首页
  • 北大荒建设集团网站网站开发环境的安装说明
  • 做虾网站该起啥名好河南工信建设网站
  • 曲阳网站建设河源网站建设多少钱
  • 东莞市领导班子图片网站seo
  • 网站推广计划书网上推广平台有哪些
  • 哈尔滨企业建站网站开发cms开源框架
  • 做网站用注册公司吗哪个网站建站比较好
  • 中国建设银行个人登录网站买个网站需要多少钱
  • 阿里云服务器怎么部署网站彩票网站开发
  • 在线音乐网站源码贵港做网站建设价格费用
  • 设计师个人作品集网站遵义网站建设制作
  • 网站建设主要营销内客国内做视频的网站
  • 郑州企业网站建设费用好用的网站管理系统
  • 南通集团网站建设南京电器网站建设
  • 网站建设高端设计辽宁省建设工程人力资源网
  • 深圳建设管理中心网站云南网站设计平台
  • 网站建设与管理ppt模板下载网易官网建立个人网站
  • 网站seo标准云浮网站建设公司
  • 网站开发员工结构企业建网站得多少钱
  • 门户网站整改情况报告wordpress演示
  • 网站开发用盗版犯法济南专业手机端网站建设
  • 苏州网站营销公司简介网络服务器租赁费高吗
  • 江西省建设职业培训学校网站花店网页设计素材
  • 公司建网站需要先注册域名wordpress还原明文密码
  • 公司网站建设费用入什么费用做游戏视频去哪个网站好
  • 河南网站建设问一问公司创新的响应式网站建设
  • 网站是做百度快照推广好建设网站需要花费什么费用
  • 做网站网页的人是不是思维单页网站建设一般收费