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

中国logo设计制作网北京seo优化厂家

中国logo设计制作网,北京seo优化厂家,wordpress4.9.4 安装,自己做优惠劵网站赚钱吗目录 效果展示适用场景文本组件TextLabelText和Label的区别 单行文本输入框TextFieldTextInputTextField 和 TextInput的区别 多行文本输入框TextAreaTextArea 和 TextEdit 的区别 效果展示 适用场景 场景组件属性短文本Text长文本 末尾省略Textelide: Text.ElideRight文本设置…

目录

  • 效果展示
  • 适用场景
  • 文本组件
    • Text
    • Label
    • Text和Label的区别
  • 单行文本输入框
    • TextField
    • TextInput
    • TextField 和 TextInput的区别
  • 多行文本输入框
    • TextArea
    • TextArea 和 TextEdit 的区别

效果展示

在这里插入图片描述

适用场景

场景组件属性
短文本Text
长文本 末尾省略Textelide: Text.ElideRight
文本设置底色Labelbackground
文本输入框TextField
多行文本输入框TextArea

文本组件

Text

在这里插入图片描述

Text {text: "Text"font.pixelSize: 20
}    
 Text {text: "TextTextTextTex1TextTextTextTextTex1Text"font.pixelSize: 20width: 200//   selectByMouse     // don't have this propertyelide: Text.ElideRight  // 长文本末尾省略符ToolTip.text: "This is ToolTip"   // import QtQuick.Controls 2.15ToolTip.visible: mouseArea.containsMouseMouseArea {id: mouseAreaanchors.fill: parenthoverEnabled: true}}

Label

在这里插入图片描述

 Label {text: "Label"font.pixelSize: 20
}   
Label {text: "Label"font.pixelSize: 20background: Rectangle {color: "Green"}
}

Text和Label的区别

  • Text是最简单的文本
  • Label继承自Text, 拓展了属性,比如background

单行文本输入框

TextField

在这里插入图片描述

 TextField {placeholderText: qsTr("TextField")font.pixelSize: 20horizontalAlignment: Text.AlignLeftselectByMouse: true  // 鼠标可以选中文本
} 
 TextField {placeholderText: qsTr("TextField")font.pixelSize: 20horizontalAlignment: Text.AlignHCenter// 输入框回显方式echoMode: TextInput.Password
}

TextInput

在这里插入图片描述

TextField 和 TextInput的区别

  • 最常使用的是TextField, 界面美观,功能强大
  • TextField继承自TextInput, 主要区别是外框

多行文本输入框

TextArea

在这里插入图片描述

 ScrollView {width: 400height: 100TextArea {anchors.fill: parentwrapMode: TextEdit.WrapselectByMouse: truefont.pixelSize: 18text:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, " +"sed do eiusmod tempor incididunt ut labore et dolore magna " +"aliqua. Ut enim ad minim veniam, quis nostrud exercitation " +"ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. ";}
}
 ScrollView {width: 400height: 100TextArea {anchors.fill: parentwrapMode: TextEdit.WrapselectByMouse: truefont.pixelSize: 18text:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, " +"sed do eiusmod tempor incididunt ut labore et dolore magna " +"aliqua. Ut enim ad minim veniam, quis nostrud exercitation " +"ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. ";}// 添加边框background:  Rectangle{color: "transparent"border.color: "#626262"}
}

TextArea 和 TextEdit 的区别

  • 主要使用TextArea
  • TextArea继承自TextEdit, 拓展了属性, 尤其是background
http://www.hkea.cn/news/832562/

相关文章:

  • 郑州网站制作天强科技seo百度发包工具
  • 江阴市住房与建设局网站seo工资多少
  • wordpress image.php南宁百度首页优化
  • 谢家华做网站百度指数与百度搜索量
  • wordpress 安装 ubuntu整站优化代理
  • 做公司网站协议书模板下载百度竞价推广公司
  • 福田蒙派克6座二手值多少钱重庆seo点击工具
  • 有了域名 怎么做网站外贸网站推广方法之一
  • 审美网站长春网站建设路
  • 网站 管理系统域名查询注册信息查询
  • 专业网站设计发展前景推广网站软文
  • 怎么建设seo自己网站网站优化推广教程
  • 最新app开发软件石家庄网站建设seo公司
  • 江苏自助建站系统哪家好推广网站要注意什么
  • 唐河做网站关键字搜索引擎
  • 松江专业做网站公司seo视频教程百度云
  • 淄博品质网站建设竞价推广怎么样
  • 搜狗站群系统资源网站优化排名优化
  • 建设一个网站哪家好网站推广优化的原因
  • 做网站的上海公司有哪些情感链接
  • 梧州做网站建设数字营销公司
  • 加强新闻网站建设建议seo高手培训
  • 安丘网站建设制作怎样制作网页设计
  • 食品网站建设优化案例热门职业培训班
  • 龙华新区做网站大地seo视频
  • 网站彩票投注员做啥的真正免费的网站建站平台运营
  • wordpress 中文注册鸡西seo
  • 佛山企业如何建网站seo的内容怎么优化
  • 在什么网站上做自媒体windows优化大师是自带的吗
  • 装修公司的网站怎么做第三方营销平台有哪些