加载中…
个人资料
一去二三里
一去二三里
  • 博客等级:
  • 博客积分:0
  • 博客访问:2,839,904
  • 关注人气:909
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

QML之Label

(2013-11-03 12:57:47)
标签:

qml

qtquick.controls1.0

label

qtquick

分类: QML
    一个文本标签,继承于Text
    这个类型位于QtQuick.Controls 1.0

详细描述
    除了正常的文本元素,标签遵照系统的字体和颜色方案。使用text属性给标签设置一个文本。对于其他属性请查看Text。
    一个简单的标签,看起来像这样:
Label {
    text: "Hello world"
}
    你可以使用Text的属性随意改变文本外观:
Label {
    text: "Hello world"
    font.pixelSize: 22
    font.italic: true
    color: "steelblue"
}
参见:Text、TextField、和TextEdit。

标签所有成员
    这是完整的标签的成员选项,包括继承的成员。

下列成员继承Text
  • baseUrl
  • clip
  • color
  • contentHeight
  • contentWidth
  • effectiveHorizontalAlignment
  • elide
  • font.bold
  • font.capitalization
  • font.family
  • font.italic
  • font.letterSpacing
  • font.pixelSize
  • font.pointSize
  • font.strikeout
  • font.underline
  • font.weight
  • font.wordSpacing
  • fontSizeMode
  • horizontalAlignment
  • lineCount
  • lineHeight
  • lineHeightMode
  • linkColor
  • maximumLineCount
  • minimumPixelSize
  • minimumPointSize
  • style
  • styleColor
  • text
  • textFormat
  • truncated
  • verticalAlignment
  • wrapMode
  • onLineLaidOut()
  • onLinkActivated()

下列成员继承Item
  • activeFocus
  • activeFocusOnTab
  • anchors.alignWhenCentered
  • anchors.baseline
  • anchors.baselineOffset
  • anchors.bottom
  • anchors.bottomMargin
  • anchors.centerIn
  • anchors.fill
  • anchors.horizontalCenter
  • anchors.horizontalCenterOffset
  • anchors.left
  • anchors.leftMargin
  • anchors.margins
  • anchors.right
  • anchors.rightMargin
  • anchors.top
  • anchors.topMargin
  • anchors.verticalCenter
  • anchors.verticalCenterOffset
  • antialiasing
  • baselineOffset
  • children
  • childrenRect.height
  • childrenRect.width
  • childrenRect.x
  • childrenRect.y
  • clip
  • data
  • enabled
  • focus
  • height
  • implicitHeight
  • implicitWidth
  • layer.effect
  • layer.enabled
  • layer.format
  • layer.mipmap
  • layer.samplerName
  • layer.smooth
  • layer.sourceRect
  • layer.textureSize
  • layer.wrapMode
  • opacity
  • parent
  • resources
  • rotation
  • scale
  • smooth
  • state
  • states
  • transform
  • transformOrigin
  • transitions
  • visible
  • visibleChildren
  • width
  • x
  • y
  • z
  • childAt()
  • contains()
  • forceActiveFocus()
  • forceActiveFocus()
  • mapFromItem()
  • mapFromItem()
  • mapToItem()
  • mapToItem()
  • nextItemInFocusChain()

下列成员继承于QtObject
  • objectName 

注:
    技术在于交流、沟通,转载请注明出处并保持作品的完整性。

0

阅读 收藏 喜欢 打印举报/Report
前一篇:QML之Button
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有