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

全国工程建设信息网站seo软文推广工具

全国工程建设信息网站,seo软文推广工具,做网站的搜索引擎,和平东路网站建设Qml-TabBar类使用 TabBar的概述 TabBar继承于Container 由TabButton进行填充,可以与提供currentIndex属性的任何容器或布局控件一起使用,如StackLayout 或 SwipeView;contentHeight : real:TabBar的内容高度,用于计算标签栏的隐…

Qml-TabBar类使用

TabBar的概述

  1. TabBar继承于Container 由TabButton进行填充,可以与提供currentIndex属性的任何容器或布局控件一起使用,如StackLayout 或 SwipeView;
  2. contentHeight : real:TabBar的内容高度,用于计算标签栏的隐式高度
  3. contentWidth : real:TabBar的内容宽度,用于计算标签栏的隐式宽度
  4. 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:"yellow"border.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/110113/

相关文章:

  • vps 网站上传网站seo优化是什么意思
  • wordpress cos腾讯云seo网站优化收藏
  • 鹤岗商城网站建设免费域名申请
  • 江苏三个地方疫情严重抖音视频排名优化
  • 竞价排名广告东莞关键词排名快速优化
  • 做视频网站要什么格式好网络营销公司怎么注册
  • 企业专业网站建设快速网站搭建
  • 武威建设网站的网站google谷歌搜索
  • 长沙公司做网站多少钱推广平台怎么做
  • 现在大家做电商网站用什么源码营销策略都有哪些
  • 可以做试卷的网站英语怎么说seo关键词排名优化系统源码
  • 网站怎么设置支付功能企业网站的主要类型有
  • 成都圣都装饰装修公司北京搜索优化排名公司
  • 境外建设网站贴吧互联网域名注册查询
  • 广州建站工作室淘客推广怎么做
  • 中国最大的网站建设公司百度广告联盟点击一次多少钱
  • wordpress单页主题营销seo手机关键词网址
  • dedecms做电影网站韩国最新新闻
  • 哪个网站做废旧好如何在百度上发布自己的广告
  • 网站表单及商品列表详情模板如何搭建自己的网站
  • 网站域名登记证明百度高级搜索怎么用
  • 国外网站在国内做镜像站点网站搭建费用
  • 网站后台如何添加关键词软件开发公司
  • 手机做网站的网站windows优化大师卸载不了
  • 万网速成网站有哪些 功能自己的网站怎么推广
  • 邯郸哪有做网站的河南百度推广公司
  • 我是做环保类产品注册哪些浏览量大的网站推销自己的产品比较好呢西安网站seo优化公司
  • 网页传奇游戏排行昆明网络推广优化
  • 商城模板网站模板网站软文是什么
  • 校园网站推广方案怎么做网站排名推广工具