![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
QT
とり
余生很长,切莫慌张
展开
-
动画和过渡
QML提供设置动画的类型PauseAnimation : 在动画执行时暂停ScriptAction:动画执行过程中执行js,与StateChanScript一起使用实现脚本重用PropertyAction:动画中立即修改一个属性的值,属性改变时不使用动画SmoothedAnimation:目标值改变时会在动画中提供一个平滑的过渡效果SpringAnimation:一个类似弹簧的...原创 2020-04-13 05:16:42 · 112 阅读 · 0 评论 -
Qt State 状态的创建
Window{ id: itemId visible: true width: 300;height: 300 Rectangle{ id:signal anchors.fill: parent color: "green" state: "WARNING2" Image { ...原创 2020-04-12 19:25:03 · 500 阅读 · 0 评论 -
Qt 自定义按钮
/*trianglebutton.h*/#include <QPushButton>#include <QPaintEvent>#include <QColor>class TriangleButton : public QPushButton{public: QColor brushColor; TriangleBut...原创 2019-12-19 08:58:19 · 507 阅读 · 0 评论