2021年8月5日
摘要: 1、PropertyAnimation(属性动画) - 使用属性值改变播放动画。 2、NumberAnimation(数字动画) - 使用数字改变播放的动画。 3、ColorAnimation(颜色动画) - 使用颜色改变播放的动画。 4、RotationAnimation(旋转动画) - 使用旋转 阅读全文
posted @ 2021-08-05 16:37 缘随风烬 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1、属性key允许你通过按键来执行你的代码,如up, down, left, right。 import QtQuick 2.0 Rectangle{ width: 400; height: 200; GreenRect{ // 封装的绿色方框组件 id:square; x:8;y:8; } foc 阅读全文
posted @ 2021-08-05 14:37 缘随风烬 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1、文本输入 文本输入允许用户输入一行文字。 import QtQuick 2.0 Rectangle{ width: 200; height: 80; color: "linen"; TextInput{ id:input1 x:8;y:8; width: 96; height: 20; focu 阅读全文
posted @ 2021-08-05 11:45 缘随风烬 阅读(842) 评论(0) 推荐(0) 编辑