<p><span style="font-size:18px">item 本身不是一个可视类型,但是item 是所有可视元素的基类。</span></p>
<p><span style="font-size:18px">由于item 是可视元素的基类,所以item 具有很多关于UI和输入输出的属性和方法</span></p>
<p><span style="font-size:18px">下面一一记录</span></p>
<p><span style="font-size:18px"></span></p>
<ul style=""><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#activeFocus-prop"><span style="font-size:14px; color:#007330; font-weight:600">activeFocus</span></a><span style="font-size:14px"> : bool 只读属性,通过activeFocus可以获取focus是否在当前的element上,如果在,那么可以处理键盘鼠标的输入信息</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.alignWhenCentered-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.alignWhenCentered</span></a><span style="font-size:14px"> : bool 指定不使用半个像素绘制图形,当需要居中一个elements,宽度或者高度是基数,不使用半个像素绘制</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.baseline-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.baseline</span></a><span style="font-size:14px"> : AnchorLine 如果是text控件,baseline是一个假想的,text 应该显示的位置。如果是非text控件则与top一致</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.baselineOffset-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.baselineOffset</span></a><span style="font-size:14px"> : real baseline的偏移量。 anchors.baseline: parent.bottom;anchors.baselineOffset: -50, 在parent.bottom 之上50个像素显示</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.bottom-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.bottom</span></a><span style="font-size:14px"> : AnchorLine 元素底线</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.bottomMargin-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.bottomMargin</span></a><span style="font-size:14px"> : real 元素底线与其他元素空隙</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.centerIn-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.centerIn</span></a><span style="font-size:14px"> : Item 居中布局</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.fill-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.fill</span></a><span style="font-size:14px"> : Item 填充anchors的区域到指定位置</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.horizontalCenter-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.horizontalCenter</span></a><span style="font-size:14px"> : AnchorLine 水平居中线</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.horizontalCenterOffset-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.horizontalCenterOffset</span></a><span style="font-size:14px"> : real 指定水平居中线偏移量</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.left-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.left</span></a><span style="font-size:14px"> : AnchorLine 元素左边线</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.leftMargin-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.leftMargin</span></a><span style="font-size:14px"> : real 元素左边线与其他元素间隙</span></li><li style="font-family:'Arial,Helvetica'; font-size:14px; color:#313131"><a href="https://blog.csdn.net/gooderfeng/article/details/qml-qtquick2-item.html#anchors.margins-prop"><span style="font-size:14px; color:#007330; font-weight:600">anchors.margins</span></a><span style="font-size:14px"> : real 指定上下左右4边与其他元素间隙</span></li><li style="font-family:'Arial |
|