Qt5 - 图形特效
来源:互联网 发布:c语言函数调用 编辑:程序博客网 时间:2024/05/19 00:37
Qt5 - 图形特效
安装QtGraphicalEffects 插件:
git clone git@gitorious.org:qt-labs/qtgraphicaleffects.git
cd qtgraphicaleffects
qmake && nmake && nmake install
字体发光 (Glow Text):
.qml
import QtQuick 2.0import QtGraphicalEffects 1.0Rectangle { width: 640 height: 480 color: "black" Text { id: xd anchors.centerIn: parent text: qsTr("\u6211\u662f\u4e2d\u6587Hello Qt") color: "red" font.pixelSize: 80 } Glow { id: effect anchors.fill: xd color: "#FFFFFFFF"// spread: 0.8 radius: 10 NumberAnimation on spread { from: 0; to: 0.8; duration: 1000 loops: NumberAnimation.Infinite easing.type: Easing.InOutQuad } // Worse// NumberAnimation on radius {// from: 1.0; to: 10; duration: 1000;// loops: NumberAnimation.Infinite// easing.type: Easing.InOutQuad// } samples: 20 visible: true source: xd } MouseArea { anchors.fill: parent onClicked: { Qt.quit(); } }}
参考:
http://labs.qt.nokia.com/2012/02/02/qt-graphical-effects-in-qt-labs/
- Qt5 - 图形特效
- 图形处理特效
- ActionScript3 图形特效 目录
- WINCE图形特效显示
- QT5 OPenGL(三, 图形旋转)
- QT5基础图形的绘制
- Visual C++中的图形特效
- echarts图形显示小特效
- Qt5 - 动态加载Glow等特效
- 基于Qt5图形视图框架的“俄罗斯方块”
- QT5 OPenGL(二,平面图形上色)
- QT5 OpenGL (四, 绘制立体图形)
- QT5 OpenGL(五,立体图形贴图)
- 第六章。Qt5图形与图片
- 第七章、QT5图形视图框架
- NGL图形库配置--VS2015+Qt5.8
- 用VB实现“百叶窗”的图形特效
- 用VB实现“百叶窗”的图形特效
- SVN中Branch/tag
- ASP.NET C# 的Web.config文件详细介绍
- Linux文件链接命令
- 由pdm生成表
- jsp案例分析(二)-聊天室-1-部署、调试
- Qt5 - 图形特效
- PowerDesigner的使用
- SQL查询中的特殊字符的处理
- 获取linux服务器性能CPU、内存、硬盘等使用率 PHP
- 单词
- Ubuntu10.04下安装SQLite3
- PowerDesigner设置集锦
- Google Protocol Buffer 的使用和原理
- Regist a form in EBS