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

vs2015做网站的后端广东云浮疫情最新情况

vs2015做网站的后端,广东云浮疫情最新情况,提示网站建设中,高端vi设计机构要在Qt中实现3D按钮#xff0c;你可以使用QML和Qt 3D模块。这是一个简单的例子#xff0c;展示了如何在Qt中创建一个3D按钮#xff1a; 首先#xff0c;确保你的系统中已经安装了Qt 3D模块。在命令行中输入以下命令检查#xff1a; qmlscene --version如果没有安装…要在Qt中实现3D按钮你可以使用QML和Qt 3D模块。这是一个简单的例子展示了如何在Qt中创建一个3D按钮 首先确保你的系统中已经安装了Qt 3D模块。在命令行中输入以下命令检查 qmlscene --version如果没有安装请根据你的操作系统安装它。 创建一个新的Qt Quick Controls 2应用例如My3DButton。 在My3DButton项目的源代码文件夹中创建一个新的JavaScript文件例如My3DButton.js。 在My3DButton.js文件中编写以下代码以实现一个基本的3D按钮 import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Window 2.12Window {visible: truewidth: 640height: 480Button {id: my3DButtonobjectName: my3DButtonproperty real buttonWidth: 100property real buttonHeight: 100property real buttonDepth: 50property color activeColor: #FF0000property color inactiveColor: #FFFFFFbackground: Rectangle {border.width: 2border.color: #555555radius: 10}contentItem: Image {source: qrc:/images/my3DButton.pngsmooth: truefillMode: Image.PreserveAspectFitwidth: buttonWidthheight: buttonHeight}states: [State {name: activewhen: my3DButton.pressedPropertyChanges {target: my3DButtoncolor: activeColor}},State {name: inactivewhen: !my3DButton.pressedPropertyChanges {target: my3DButtoncolor: inactiveColor}}]transitions: [Transition {from: *to: activePropertyChanges {target: my3DButtoncolor: activeColor}PropertyChanges {target: my3DButtonx: -buttonWidth / 2y: -buttonHeight / 2}PropertyChanges {target: my3DButtonwidth: buttonWidthheight: buttonHeight}PropertyChanges {target: my3DButtondepth: buttonDepth}},Transition {from: activeto: inactivePropertyChanges {target: my3DButtoncolor: inactiveColor}PropertyChanges {target: my3DButtonx: 0y: 0}PropertyChanges {target: my3DButtonwidth: 0height: 0}PropertyChanges {target: my3DButtondepth: 0}}]} }将My3DButton.js文件添加到My3DButton项目的QML文件中例如My3DButton.qml。 import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Window 2.12Window {visible: truewidth: 640height: 480My3DButton {id: my3DButtonobjectName: my3DButtonbuttonWidth: 100buttonHeight: 100buttonDepth: 50} }运行项目你应该能看到一个3D按钮。当点击按钮时它会从激活状态变为非激活状态并根据颜色进行变化。
http://www.dnsts.com.cn/news/2736.html

相关文章:

  • 网站上banner怎么做seo经典案例
  • 驾校报名网站怎么做百度自助建站官网
  • php企业网站开发实验总结网络广告推广服务
  • 网站建设技术服务费记什么科目线上营销活动方案
  • 巴彦淖尔网站制作开发北京网络排名优化
  • 用java后端做网站浙江seo博客
  • 馆陶网站建设费用优书网
  • wordpress图片主题模板武汉seo首页优化公司
  • 大庆建网站广告精准推广平台
  • 最近一周中国新闻大事seo查询爱站网
  • 番禺网站建设公司排名网站seo优化免费
  • 网站建设维护价格企业网站管理系统
  • 用织梦做的网站怎样看百度搜图片功能
  • 手机网站建设万网手机网页制作
  • wordpress视频模型百度seo关键词优化费用
  • 网站开发概要设计书模板交换友情链接的方法
  • 大型网站建设兴田德润简介网络推广怎么样
  • wordpress酷147seo工具
  • 一级建造师招聘网最新招聘seo公司杭州
  • 怎样在网上卖东西佛山seo网站排名
  • 帮忙做网站百度百科词条
  • 金华网站建设公司软件测试培训班多少钱
  • 电商网站设计流程找关键词的方法与技巧
  • 视频网站开发流程怎么搞自己的网站
  • 网站建设哪家好灵活苏州久远网络app开发公司排名
  • 两学一做专题网站素材百度一下知道首页
  • 做签证的网站app香港账号
  • 自己的网站打不开百度账号中心
  • 腾讯云网站建设的步骤过程sem竞价推广
  • 专门做运动鞋的网站网站优化培训班