2021年8月20日
摘要:
问题: 严重性 代码 说明 项目 文件 行 禁止显示状态错误 C2440 “=”: 无法从“std::_Binder<std::_Unforced,SOCKET &,sockaddr *,unsigned int>”转换为“int” 原因: 在C++11中新增std::bind(_Fp &&__f,
阅读全文
posted @ 2021-08-20 00:18
缘随风烬
阅读(509)
推荐(0)
2021年8月12日
摘要:
import QtQuick 2.0 Rectangle { width: 480 height: 300 color: "white" ListModel { id: theModel ListElement { number: 0 } ListElement { number: 1 } List
阅读全文
posted @ 2021-08-12 15:03
缘随风烬
阅读(490)
推荐(0)
摘要:
import QtQuick 2.0 Rectangle{ width: 240; height: 300; color: "white" GridView{ anchors.fill: parent anchors.margins: 20 clip: true // 设置clip属性为true,来
阅读全文
posted @ 2021-08-12 14:35
缘随风烬
阅读(896)
推荐(0)
摘要:
1、对于用户,ListView是一个滚动区域,支持惯性滚动。(代理项delegates) import QtQuick 2.0 Rectangle{ width: 80 height: 300 color: "white" ListView{ anchors.fill: parent anchors
阅读全文
posted @ 2021-08-12 09:47
缘随风烬
阅读(3212)
推荐(0)
2021年8月11日
摘要:
一个链表模型(ListModel)是由许多个链表元素(ListElement)组成。 import QtQuick 2.0 Column{ spacing: 2 Repeater{ model:ListModel{ ListElement{name:"单机"; surfaceColor:"gray"
阅读全文
posted @ 2021-08-11 16:57
缘随风烬
阅读(1675)
推荐(0)
2021年8月6日
摘要:
import QtQuick 2.0 Item{ id:root; state: "go" // 设置初始状态 states: [ State { // 设置每个目标的颜色,并命名 name: "go" PropertyChanges {target: light1; color:"green"}
阅读全文
posted @ 2021-08-06 17:16
缘随风烬
阅读(246)
推荐(0)
摘要:
Item{ id:root; width: 480; height: 300; property int duration: 3000; // 设置时间3000ms Rectangle{ // 设置天空颜色 id:sky; width: parent.width; height: 200; grad
阅读全文
posted @ 2021-08-06 15:34
缘随风烬
阅读(61)
推荐(0)
摘要:
1、平行动画 关键字(ParallelAnimation):当开始时,平行元素的所有子动画都会平行运行,它允许你在同一时间使用不同的属性来播放动画。 import QtQuick 2.0 Rectangle{ id:root width: 1000; height: 1000; property i
阅读全文
posted @ 2021-08-06 10:26
缘随风烬
阅读(78)
推荐(0)
2021年8月5日
摘要:
1、PropertyAnimation(属性动画) - 使用属性值改变播放动画。 2、NumberAnimation(数字动画) - 使用数字改变播放的动画。 3、ColorAnimation(颜色动画) - 使用颜色改变播放的动画。 4、RotationAnimation(旋转动画) - 使用旋转
阅读全文
posted @ 2021-08-05 16:37
缘随风烬
阅读(271)
推荐(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
缘随风烬
阅读(136)
推荐(0)