QML
BillyJue
这个作者很懒,什么都没留下…
展开
-
信号连接
1.界面作为上一个页面的组件2.动态创建的页面信号连接3.属性值的变化也出触发槽函数 如 nCount 也会触发函数原创 2018-03-22 16:02:33 · 903 阅读 · 0 评论 -
RadioButton 自绘控件
一种:import QtQuick 2.5import QtQuick.Controls 1.2import QtQuick.Controls.Styles 1.2RadioButton{ id: groupRadio; style: RadioButtonStyle{ indicator: Image{ source: control.checke...原创 2018-03-28 11:24:40 · 807 阅读 · 0 评论 -
实现Tabview的另一种方式
function showZLForm() { if(sForm === null) { var ckCom = Qt.createComponent("qrc:/1.qml"); if(ckCom.status === Component.Ready) { sForm =...原创 2018-03-22 10:30:08 · 207 阅读 · 2 评论 -
TabView用法
//tab切换 TabView { id:tabView; anchors.fill: parent; tabPosition: Qt.BottomEdge; clip: true onCurrentIndexChanged: { switch(currentIndex) ...原创 2018-03-21 14:52:14 · 4682 阅读 · 0 评论 -
QML Loader的用法
function initData() { var len = jsonData.length; var dataT = []; var dType = []; var radioInput = []; for(var i = 0; i < len; i++) { var str=...原创 2018-03-21 14:29:50 · 2149 阅读 · 1 评论 -
QML 左滑
Component { id: delegate; Item { id: deleItem; width: xjsbList.width; height: deleRec.height; property int idx: index; Rectang...原创 2018-03-21 14:26:25 · 495 阅读 · 0 评论 -
QML 绘图
import QtQuick 2.6import QtQuick.Window 2.2Window { visible: true width: 640 height: 480 title: qsTr("Hello World")// Image {// anchors.fill: parent;// id: img;// s...原创 2018-03-21 14:23:35 · 333 阅读 · 0 评论 -
QML 自定义Button控件与Button 样式的实现
1.自定义控件新建一个QML文件,命名为MyselfButton.qml,写如入代码import QtQuick 2.0 Rectangle { id: btn; width: 200; height: 40; color: "red"; property string btnName: ""; sig...原创 2018-08-19 22:02:19 · 2809 阅读 · 0 评论