摘要:
MouseArea { anchors.fill: parent; hoverEnabled: true; cursorShape: (containsMouse? (pressed? Qt.ClosedHandCursor: Qt.OpenHandCursor): Qt.ArrowCursor); 阅读全文
摘要:
1、代码 import QtQuick 2.0 import QtQuick.Controls 2.0 Rectangle { id:root; color: "#19192C"; property int rect_width: 80; property int rect_height: 20; 阅读全文
摘要:
1、全等于 2、不等于 !== 阅读全文
摘要:
1、var uiRecord: [];//QML语法 2、删除并返回最后一个元素 uiRecord.pop(); 3、清空所有 uiRecord.splice(0,uiRecord.length); uiRecord = []; uiRecord.length = 0; 4、删除第一个元素并返回 u 阅读全文
摘要:
SwipeView { id: swipeView z:0; width: parent.width-listView.width; height: parent.height; anchors.left: listView.right; interactive: false;//禁止手拖动 cur 阅读全文
摘要:
RadioButton { id:root2 checked: false property color checkedColor: "#E5F012" property int node_id: 2; onClicked: { if(root2.checked) { swipeView.curre 阅读全文
摘要:
1、例子1 import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 import QtQuick.Window 2.2 Window { visible: true width: 300 height: 45 阅读全文