Ai
1 Star 0 Fork 25

Linux-Gitee/Qtmxapp-desktop

forked from 韦东山/Qtmxapp-desktop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CaptureButton.qml 914 Bytes
一键复制 编辑 原始数据 按行查看 历史
世玉轩 提交于 2020-06-19 17:31 +08:00 . init push myir hmi v2.0 gui
import QtQuick 2.0
import QtQuick.Controls 2.5
Rectangle {
id: root
width: 50
height: width
radius: width/2
color: "white"
signal captureImage
signal captureVideoStart
signal captureVideoStop
Rectangle {
id: shotButton
width: root.width-6
height: width
radius: width/2
color: "black"
anchors.centerIn: parent
Rectangle {
id: captureRec
width: root.width-12
height: width
radius: width/2
color: "white"
anchors.centerIn: parent
MouseArea {
enabled: true
anchors.fill: parent
onClicked: root.captureImage()
onPressed: captureRec.color = "black"
onExited: captureRec.color = "white"
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/linux-gitee/Qtmxapp-desktop.git
git@gitee.com:linux-gitee/Qtmxapp-desktop.git
linux-gitee
Qtmxapp-desktop
Qtmxapp-desktop
master

搜索帮助