摘要: Note: Anchor margins only apply to anchors; they are not a generic means of applying margins to an Item. If an anchor margin is specified for an edge 阅读全文
posted @ 2017-09-29 22:00 嘎布拉 阅读(268) 评论(0) 推荐(0)
摘要: 上面代码定义的渐变是从上到下的渐变。左右横向渐变则不太好实现,看网上教程有说进行旋转,但总感觉不是正常的解决方法。 搜了下资料发现LinearGradient可以实现,示例代码如下 更多资料参考:http://doc.qt.io/qt-5/qml-qtgraphicaleffects-linearg 阅读全文
posted @ 2017-09-25 23:47 嘎布拉 阅读(2204) 评论(0) 推荐(0)
摘要: 定位器:Column、Row、Grid 布局:ColumnLayout、RowLayout,GridLayout ColumnLayout、RowLayout和Column、Row相比,ColumnLayout和RowLayout具有布局管理能力。 布局管理器里面的元素可以使用以下附加属性,这些属性 阅读全文
posted @ 2017-09-23 00:15 嘎布拉 阅读(478) 评论(0) 推荐(0)