|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
效果:
这大图片是我从天涯论坛找的,心形的小图是不二给我做的,还是把MainForm.ui.qml文件删除,main.qml文件修改为:
- import QtQuick 2.5
- import QtQuick.Window 2.2
- import QtQuick.Particles 2.0
- Window {
- visible: true
- width: 480
- height: 674
- title: qsTr("Hello World")
- Item {
- width: 480
- height: 674
- Image {
- source: "qrc:/C:/Users/xinwei/Pictures/122903632.jpg"
- }
- ParticleSystem {
- id: particles
- running: true
- }
- ImageParticle {
- system: particles
- source: "qrc:/C:/Users/xinwei/Pictures/42d7d98ca376d5863313bfa8fdf14aa9.png"
- alpha: 0.1
- colorVariation: 0.6
- }
- Emitter {
- width: parent.width
- height: parent.height
- anchors.right: parent.right
- system: particles
- emitRate: 10
- lifeSpan: 1000
- size: 30
- sizeVariation: 10
- }
- }
- }
复制代码
Preview: 明天介绍物体的弹簧运动 |
评分
-
查看全部评分
|