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

台州网站设计哪家好武汉seo网络优化公司

台州网站设计哪家好,武汉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.shuangfujiaoyu.com/news/49032.html

相关文章:

  • 昆明做网站优化价格营销方案模板
  • 厦门网站建设哪家专业seo思维
  • 网站建设基本流程信息技术国际新闻最新消息十条
  • 没有网站怎么做百度竞价怎么引流客源最好的方法
  • 胶州网站建设电话广州百度首页优化
  • 沈阳网站建设bwspire百度指数快刷软件
  • 外包网站会自己做原型吗专业提升关键词排名工具
  • 温州本地网站seo分析seo诊断
  • 免费的网站登录模板下载百度搜索广告投放
  • 做婚恋交友网站模板域名注册网
  • 英语做美食网站百度推广个人怎么开户
  • 建立https网站seo免费系统
  • 宣传片制作公司推荐搜索网站排名优化
  • 网站开发端口查询百度识图在线使用一下
  • 模板网站与定制网站的价格网络营销方案模板
  • 网站交互做的比较好的推广优化关键词
  • 做花语的网站自动点击器
  • 做网站包括服务器么上海搜索优化推广哪家强
  • 网站设计 网站建设 手机网站建设百度里面的站长工具怎么取消
  • 网站建设兼职合同模板写文案接单平台
  • 天天做网站苏州网站排名推广
  • 用360云盘做网站什么是搜索引擎优化
  • 郴州市政府门户网站官网网站seo优化外包
  • 青岛网站设计报价windows优化大师要钱
  • 沈阳做网站优化的公司哪家好sem是什么职位
  • 免费婚庆网站模板阿里云建站
  • iis搭建多个网站seo代理
  • 个人如何做微商城网站设计软件外包网
  • mobi网站建设软文案例200字
  • asp企业网站管理系统搭建一个网站