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

网站搭建上门多少钱成功的营销案例及分析

网站搭建上门多少钱,成功的营销案例及分析,建设网站书籍pdf下载,wordpress转dz目录 定位元素 Column Row Grid Flow 布局元素 1.元素填充它的⽗元素。 2.对齐 定位元素 Column Column (列)元素将它的⼦对象通过顶部对⻬的列⽅式进⾏排列。 spacing 属性⽤来设置每个元素之间的间隔⼤⼩ Row Row (⾏)元…

 

目录

 

定位元素

 Column

Row

Grid

Flow

布局元素

1.元素填充它的⽗元素。

2.对齐


定位元素

 Column

Column (列)元素将它的⼦对象通过顶部对⻬的列⽅式进⾏排列。 spacing
属性⽤来设置每个元素之间的间隔⼤⼩

Row

Row (⾏)元素将它的⼦对象从左到右,或者从右到左依次排列,排列⽅式
取决于 layoutDirection 属性。 spacing 属性⽤来设置每个元素之间的间隔⼤
⼩。

 

Window {width: 640height: 480visible: truetitle: qsTr("Hello World")color: "black"//Column{Row{layoutDirection: Qt.RightToLeftanchors.centerIn: parentspacing: 10padding: 10MyPushbutton{color:"red"width:60height: 70buttontext: "1"}MyPushbutton{id:blueButtoncolor:"blue"width:60height: 70buttontext: "2"}MyPushbutton{id:greenButtoncolor:"green"width:60height: 70buttontext: "3"}populate: Transition {// 定义动画效果NumberAnimation {property: "opacity";from: 0;to: 1;duration: 3000}}move: Transition {NumberAnimation { properties: "x,y"; duration: 2000 }}add:Transition {NumberAnimation{ properties: "width";from:30;to:120;duration: 2000}}focus: trueKeys.onSpacePressed: blueButton.visible = !blueButton.visible}
}

Grid

Grid (栅格)元素通过设置 rows (⾏数)和 columns (列数)将⼦对象排列
在⼀个栅格中。可以只限制⾏数或者列数。如果没有设置它们中的任意⼀
个,栅格元素会⾃动计算⼦项⺫总数来获得配置,例如,设置 rows (⾏数)
3 ,添加了 6 个⼦项⺫到元素中,那么会⾃动计算 columns (列数)为 2 。属
flow (流)与 layoutDirection (布局⽅向)⽤来控制⼦元素的加⼊顺序。
spacing 属性⽤来控制所有元素之间的间隔

 

Grid{rows:2columns:3spacing:10horizontalItemAlignment: Grid.AlignHCenterverticalItemAlignment: Grid.AlignVCenteranchors.centerIn: parentMyPushbutton{color:"red"width:40height: 70buttontext: "1"}MyPushbutton{color:"green"width:20height: 30buttontext: "2"}MyPushbutton{color:"blue"width:10height: 20buttontext: "3"}MyPushbutton{color:"#ED42DD"width:60height: 70buttontext: "4"}MyPushbutton{color:"#2DD630"width:60height: 70buttontext: "5"}MyPushbutton{color:"#CED64C"width:60height: 70buttontext: "6"}}

Flow

Flow (流)。通过 flow (流)属性和 layoutDirection (布局
⽅向)属性来控制流的⽅向。它能够从头到底的横向布局,也可以从左到右
或者从右到左进⾏布局。作为加⼊流中的⼦对象,它们在需要时可以被包装
成新的⾏或者列。为了让⼀个流可以⼯作,必须指定⼀个宽度或者⾼度,可
以通过属性直接设定,或者通过 anchor (锚定)布局设置

 

Flow{spacing:10layoutDirection:Flow.BottomRightanchors.centerIn: parentMyPushbutton{color:"red"width:40height: 70buttontext: "1"}MyPushbutton{color:"green"width:20height: 30buttontext: "2"}MyPushbutton{color:"blue"width:10height: 20buttontext: "3"}MyPushbutton{color:"#ED42DD"width:60height: 70buttontext: "4"}MyPushbutton{color:"#2DD630"width:60height: 70buttontext: "5"}MyPushbutton{color:"#CED64C"width:60height: 70buttontext: "6"}}

布局元素

QML 使⽤ anchors (锚)对元素进⾏布局。 anchoring (锚定)是基础元素对象的基本属性,⼀个元素有 6 条锚定线( top 顶, bottom 底, left 左, right 右, horizontalCenter⽔平中,verticalCenter垂直中)。 在 QML 中,锚也会冲突的,比如:anchors.centerInanchors.left 是两个不同的锚点属性,它们不能同时生效。

 

1.元素填充它的⽗元素。

这里填充需要注意如果三个元素(A/B/C)分别包含的意思,且B包含C,这里B跟A会填充,如果C没跟B绑定,就会导致C如下效果

 

 这里MyPushbutton里Text被

Window {width: 640height: 480visible: truetitle: qsTr("Hello World")color: "white"Rectangle{color:"#CED64C"width:60height: 70// anchors.fill: parentanchors.centerIn: parentText {id: textanchors.centerIn: parentfont.pointSize: 24text: qsTr("1")}}
}

2.对齐

这里只写left和horizontalCenter其他类似

Rectangle{color:"#CED64C"width:60height: 70y:20anchors.left: parent.left//anchors.horizontalCenter: parent.horizontalCenter  // 调整水平位置//anchors.horizontalCenterOffset: -30 //偏移//anchors.verticalCenterOffset: -parent.height / 2 + height / 2  // 调整垂直位置Text {id: text02anchors.centerIn: parentfont.pointSize: 24text: qsTr("2")}}

 

 

http://www.cadmedia.cn/news/7027.html

相关文章:

  • 南京哪家网站做的好优秀网站网页设计图片
  • 建设网站备案与不备案区别网址服务器查询
  • 男女之间做那个事情很污的网站浙江专业网站seo
  • 东莞本地的发布平台二十条优化
  • 收录网站是什么意思站长素材网站官网
  • 西安疫情吉林seo推广
  • 职业教育网站建设可行性报告台湾永久免费加密一
  • 应用公园是收费还是免费的seo优化网络
  • 百度对网站建设公司全网营销策划公司
  • 网站建设和优化要求seo推广软件哪个好
  • 企业网站springboot武汉大学人民医院东院
  • 小红书推广营销网站seo博客
  • 商务之家网福建seo快速排名优化
  • 天津网站排名优化外贸营销网站制作
  • 网站建设网页设计培训班怎么制作网站教程步骤
  • 自己想做个网站需要多少钱优化网站seo公司
  • 芜湖网站建设推广公司搜索引擎优化是什么?
  • seo做论坛和企业网站差别百度自动点击器怎么用
  • 宁波网站推广运营公司网上推销产品的软件
  • 给我一个网站电工培训内容
  • 广州建网站开发seo型企业网站seo排名优化软件有用吗
  • 旅行社网站规划与建设如何在网上做销售推广
  • 系统开发工具有哪些长沙seo优化价格
  • 淘客推广佣金广安seo外包
  • 网站开发遇到的难题解决seo优化排名工具
  • 江西专业的网站建设制作sem和seo是什么
  • 专业做红木家具网站网络推广员是干什么的
  • wordpress 大战深圳优化服务
  • 广州新建站百度客户端下载
  • 怎么建设医疗美容网站百度推广开户多少钱一个月