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

哲林高拍仪网站开发用啥网站做首页

哲林高拍仪网站开发,用啥网站做首页,深圳网络提速优化服务包,做网站的动态图片目录 主要动画元素 例子#xff1a; 非线性动画 分组动画 Qt 动画是一种在 Qt 框架下创建交互式和引人入胜的图形用户界面的方法#xff0c;我们可以认为是对某个基础元素的多个设置 主要动画元素 PropertyAnimation-属性值变化时的动画 NumberA…  目录 主要动画元素 例子 非线性动画 分组动画 Qt 动画是一种在 Qt 框架下创建交互式和引人入胜的图形用户界面的方法我们可以认为是对某个基础元素的多个设置                         主要动画元素 PropertyAnimation-属性值变化时的动画 NumberAnimation-qreal类型值变化时的动画 ColorAnimation-颜色值变化时的动画 RotationAnimation-旋转值变化时的动画 特殊点的 PauseAnimation-为动画提供暂停 SequentialAnimation-允许按顺序运行动画 ParallelAnimation-允许并行运行动画 AnchorAnimation-锚定值变化时的动画 ParentAnimation-为父元素对象中值发生变化时的动画 SmoothDaniation-允许属性平滑跟踪值 SpringAnimation-允许特性跟踪类似弹簧的运动中的值 PathAnimation-一个项沿路径变化的动画 Vector3dAnimation -为QVector3d值发生变化时的动画 Qt Quick提供了动作元素类型可以在任何可以使用其他动画元素的地方 PropertyAction动画期间立即更改指定的属性 ScriptAction-定义要在动画期间运行的脚本 例子 PropertyAnimation属性动画提供了一种对属性值的更改进行动画处理的方法。Image {id:rootwidth: 400;height: 400//背景source: illustration_2.png//运行状态property bool runing: falseImage{id:logosource: logo.pngx:(root.width-logo.width)/2y:(root.height-logo.height)/2//沿X轴移动PropertyAnimation on x{//沿X轴移动到root.width-logo.widthto:root.width-logo.width//时间2sduration:2000running: root.runing}// 旋转PropertyAnimation on rotation{to:360 //旋转角度duration:2000running: root.runing}//透明度PropertyAnimation on opacity{to:0.1duration:2000running: root.runing}//响应消息改变运行状态MouseArea{anchors.fill: parentonClicked: root.runing true}} } 非线性动画 我们现在定义的所有动画都使用线性插值因为动画的初始缓和类型是Easing.Linear。最好通过一个小的绘图进行可视化下其中y轴是要设置动画的属性x轴是时间持续时间。线性插值将从动画开始时的“from”值到动画结束时的“to”值绘制一条直线。因此缓和类型定义了曲线的变化 关于这段你们可以看示例关键字Easing Curves Example官方示例或者下面代码 //EasingType.qml import QtQuick 2.0Item {id:rootwidth: 200;height: 200property alias image: label.textproperty alias source: image.sourceproperty var easingTyep;signal clickedImage{id:imageanchors.fill: parentsource: imageText {id: labeltext: qsTr(text)anchors.horizontalCenter: parent.horizontalCenteranchors.bottom: parent.botton}}MouseArea{anchors.fill: parentonClicked: root.clicked()} }//主函数 import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Layouts 1.2Rectangle {id:rootwidth: childrenRect.widthheight: childrenRect.heightcolor: greengradient: Gradient{GradientStop{position: 0;color:#8bafce }GradientStop{position: 1;color:#8edf80}}ColumnLayout{spacing: 20Grid{spacing: 10columns: 5EasingType{image:InExpo.pngeasingTyep: Easing.LinearonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutBack.pngeasingTyep: Easing.OutExpoonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutBounce.pngeasingTyep: Easing.InOutBounceonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutCirc.pngeasingTyep: Easing.InOutCirconClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutCubic.pngeasingTyep: Easing.InOutCubiconClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutElastic.pngeasingTyep: Easing.InOutElasticonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:InOutExpo.pngeasingTyep: Easing.InOutExpoonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:Linear.pngeasingTyep: Easing.LinearonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:OutExpo.pngeasingTyep: Easing.OutExpoonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}EasingType{image:SineCurve.pngeasingTyep: Easing.SineCurveonClicked:{animation.easing.typeeasingTyepbox.toggle !box.toggle}}}Rectangle{id:boxproperty bool togglewidth: 100height:100x:toggle?20:root.width - width - 20gradient:Gradient{GradientStop{position: 0;color: #eaea81}GradientStop{position: 1;color: #f4cccc}}Behavior on x{NumberAnimation{id:animationduration: 1000}}}} }用别的图展示一下吧 分组动画 顾名思义可以对动画进行分组。分组可以通过两种方式完成并行或顺序。可以使用 or 元素该元素充当其他动画元素的动画容器。这些分组动画本身就是动画可以完全按照动画使用。SequentialAnimation与ParallelAnimation import QtQuick 2.0Rectangle {id:rootImage{id:didix:30;y:300source:InOutCirc.pngfocus:falsesignal clickedMouseArea{anchors.fill: parentonClicked:{anim.restart()}}}//ParallelAnimationSequentialAnimation{id:animNumberAnimation {target: didiproperty: yto: 200duration: root.duration}NumberAnimation {target: didiproperty: xto: 150duration: root.duration}}}动画嵌套 分组动画也可以嵌套。例如一个连续动画可以有两个并行动画作为子动画依此类推。我们可以通过足球的例子来形象化这一点。这个想法是从左到右扔一个球并为其行为添加动画效果 主函数主要是将图层分成二块 import QtQuick 2.12 import QtQuick.Window 2.12Window {id:rootwidth: 640height: 480visible: truetitle: qsTr(Hello World)Rectangle {id: skywidth: root.widthheight: 300gradient: Gradient {GradientStop { position: 0.0; color: #0080FF }GradientStop { position: 1.0; color: #66CCFF }}}Rectangle {id: groundanchors.top: sky.bottomanchors.bottom: root.bottomwidth: parent.width;height: root.heightgradient: Gradient {GradientStop { position: 0.0; color: #00FF00 }GradientStop { position: 1.0; color: #00803F }}}BrightSquare{} }为了理解动画我们需要将其剖析为对象的积分变换。我们需要记住动画会为属性更改设置动画。以下是不同的转换 从左到右的 x 平移 X1) 从下到上 的 y 平移然后是从上到下的平移有一些弹跳Y1Y2 在整个动画持续时间内旋转 360 度 ROT1) import QtQuick 2.0Rectangle {id:rootImage{id:didix:10;y:450source:InOutCirc.pngfocus:falsesignal clickedMouseArea{anchors.fill: parentonClicked:{didi.y 480 - didi.heightdidi.rotation 0anim.restart()}}}//ParallelAnimation//SequentialAnimationParallelAnimation{id:animSequentialAnimation{NumberAnimation {target: didiproperty: yto: 100duration: root.durationeasing.type:Easing.OutCirc}NumberAnimation {target: didiproperty: yto: 400duration: root.durationeasing.type:Easing.OutCirc}}NumberAnimation {target: didiproperty: xto: 300duration: root.duration}RotationAnimation{target: didiproperty: rotationto:360duration: root.duration}}}
http://www.hkea.cn/news/14447332/

相关文章:

  • 线上网站开发系统流程如何外贸网站推广
  • 网站加视频网站优化方案怎么写
  • 网站优化seo网站优化经理
  • 上海做网站运维的公司两个网站链接怎么做
  • PHP网站开发成功案例泰安专业网站建设
  • 电商网站开发需要多少钱高端网站定制设计
  • 电视台网站建设方案网站用什么好
  • 沧州网站设计报价郴州市北湖建设局网站
  • 保定seo管理南昌快速排名优化
  • 霞山网站建设公司wordpress 后台卡
  • 网站面板门户网站的三个基本特征
  • 仿阿里巴巴行业门户贸易网站模板wordpress怎么静态页面
  • 问答网站开发全网关键词指数查询
  • 网站设计和平面设计广东网站建设公
  • 建设门户网站人均ip1000需要多大数据库网站建设投标方案
  • 使用dw做门户网站便宜正品的购物app
  • 网站站点建设端口号的作用网站建设的维护工作有哪些
  • 网站开发培训成都个人网站备案能做什么内容
  • 自助式建网站app开发公司资质
  • 聊城网站推广的公司微信开放平台怎么解除
  • 化工企业网站建设怎样把自己做的网站上传到网上
  • 站长素材合肥网站商城开发
  • 山东百度推广上海关键词优化按天计费
  • wordpress亲子模板下载网站设计网站优化公司
  • 企业网站设计推广方案网站建设价格在哪济南兴田德润优惠吗
  • 冠县网站建设gxsh做网站淘宝条形码
  • 买域名做网站跳转我的世界做皮肤壁纸网站
  • 南宁 网站建设 制作扬州网站seo
  • 无需下载的网站乡镇医院网站建设
  • 网站建设流程收费游戏网