当前位置: 首页 > news >正文

销售网站建设工资多少绿色主色调网站

销售网站建设工资多少,绿色主色调网站,福建手机版建站系统开发,seo做的不好的网站QML 实现一个动态的启动界面 一、效果查看二、源码分享三、所用到的资源下载 一、效果查看 二、源码分享 工程结构 main.qml import QtQuick import QtQuick.Controls import QtQuick.Dialogs import Qt.labs.platformWindow {id:windowwidth: 640height: 400visible: truetit…

QML 实现一个动态的启动界面

  • 一、效果查看
  • 二、源码分享
  • 三、所用到的资源下载

一、效果查看

在这里插入图片描述

二、源码分享

工程结构
在这里插入图片描述

main.qml

import QtQuick
import QtQuick.Controls
import QtQuick.Dialogs
import Qt.labs.platformWindow {id:windowwidth: 640height: 400visible: truetitle: qsTr("Hello World")property int imageCnt: 1Rectangle{anchors.fill: parentgradient: Gradient{orientation: Gradient.VerticalGradientStop { position: 0.0; color: "#4bb6ac" }GradientStop { position: 0.5; color: "#3edabd" }GradientStop { position: 1.0; color: "#24efc0" }}}Timer{interval: 2000repeat: truerunning:trueonTriggered: {var w = Qt.createComponent("DynamicImage.qml")if (w.status === Component.Ready) {var image = "qrc:/image/image"+imageCnt+".svg";imageCnt += 1if(imageCnt > 10)imageCnt = 1var endX = Math.floor(Math.random()*window.width);console.log(image,endX)var item = w.createObject(window,{x:window.width/2-50,y:window.height,width:100,height:100,source:image,stopX:endX,stopY:-150,originX:0,originy:50,moveDuration:15000,rotationDuration: 5000,running: true});console.log("create:"+item)item.moveFinished.connect(()=>{item.destroy()console.log("destroyed:"+item)})}else console.error("create component falied!");}}Text{id:btnwidth: 200height: 100z:1anchors.centerIn: parenttext: "正在启动中...请稍后!"color:"white"horizontalAlignment: Text.AlignHCenterverticalAlignment: Text.AlignVCenterfont.pixelSize: 30font.bold: truefont.italic: true}}

DynamicImage.qml

//DynamicImage.qml
import QtQuick
import QtQuick.ControlsImage{id:rootproperty int stopX: 0property int stopY: 0property alias originX: rotation.origin.xproperty alias originy: rotation.origin.yproperty int moveDuration: 5000property int rotationDuration: 5000property bool running: falsesignal moveFinished()transform: Rotation{id:rotationaxis.x: 0axis.y: 0axis.z: 1}RotationAnimation{running: root.runningtarget: rootfrom:0to:360loops:Animation.Infiniteduration: rotationDuration}ParallelAnimation{id:animrunning:root.runningNumberAnimation{target: rootproperties: "x"from:root.xto:stopXduration: moveDuration}NumberAnimation{target: rootproperties: "y"from:root.yto:stopYduration: moveDuration}onFinished: {moveFinished()console.log("onFinished")}}Component.onDestruction: {//console.log("onDestroyed")}
}

三、所用到的资源下载

本博文最前面下载。

http://www.dtcms.com/a/519354.html

相关文章:

  • 应用层网络协议深度解析:设计、实战与安全
  • C++:类和对象_bite
  • SQL之键与约束
  • 【vTESTstudio开发教程】--- 如何添加测试用例List
  • SpringBoot-Web开发之内容协商
  • 实现一个JSON工具类自动处理JSON转String
  • 域名注册网站那个好企业服务官网
  • SpringBoot-数据访问之MyBatis与Redis
  • iOS 26 App 运行状况全面解析 多工具协同监控与调试实战指南
  • uts ios插件开发tips
  • 单页营销型网站全国城建中心官方网站
  • 了解sip和rtp是什么
  • MySQL-3-函数应用及多表查询
  • 自然语言处理分享系列-词语和短语的分布式表示及其组合性(二)
  • 网站建设珠海 新盈科技泉州建站模板
  • ISO 8601日期时间标准及其在JavaScript、SQLite与MySQL中的应用解析
  • 利用博客做网站排名南京外贸网站建设案例
  • 使用 VS Code 的 Dev Containers 插件,通过跳板机间接连接docker
  • 衡水城乡建设局网站首页北京网站建设华大
  • 湛江网站建设哪家优惠多常见的网站结构有哪些
  • php网站源码架构seo标题生成器
  • ui设计师与网站编辑有什么关系重庆森林为什么不能看
  • 站长工具成品源码广西贵港建设集团有限公司网站
  • 电子商务网站建设技术解决方案wordpress ios
  • 企业是如何做电子商务网站软件开发培训机构去学
  • 摄影网站策划书wordpress 赞 分享
  • 深圳我的网站深圳市工程交易服务网宝安
  • php制作wap网站开发我国酒店网站建设存在的问题
  • 金坛网站建设企业手机网站建设渠道
  • 做网站要不要钱东莞网站快速优化排名