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

Qt/QML学习-SwipeView

QML学习

  • SwipeView例程
  • 视频讲解
  • 代码

main.qml

import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15Window {width: 640height: 480visible: truetitle: qsTr("Hello World")SwipeView {id: viewanchors.fill: parentcurrentIndex: pageIndicator.currentIndex// 添加页面Rectangle {color: "red"Text {anchors.centerIn: parentfont.pointSize: 30color: "white"text: "点赞"}}Rectangle {color: "green"Text {anchors.centerIn: parentfont.pointSize: 30color: "white"text: "关注"}}Rectangle {color: "blue"Text {anchors.centerIn: parentfont.pointSize: 30color: "white"text: "放假当宅宅"}}}PageIndicator {id: pageIndicatorcount: view.countcurrentIndex: view.currentIndexanchors.bottom: view.bottomanchors.horizontalCenter: parent.horizontalCenterinteractive: truedelegate: Rectangle {width: 40height: 40color: pressed? "pink": index===pageIndicator.currentIndex? "white": "black"}}
}

演示

视频讲解

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • 机器学习课程学习周报八
  • 基于华为atlas下的yolov5+BoT-SORT/ByteTrack煤矿箕斗状态识别大探索
  • ES6 (一)——ES6 简介及环境搭建
  • 大模型学习微调资源
  • django之BaseSerializer
  • Go语言基础--数据类型(布尔、字符串)
  • QT 按钮延时以及滚动条提示
  • centos 下如何安装openjdk21
  • Springboot实现doc,docx,xls,xlsx,ppt,pptx,pdf,txt,zip,rar,图片,视频,音频在线预览功能,你学“废”了吗?
  • 【qt】跳转到另一个界面
  • 安全密码算法:SM3哈希算法介绍
  • 电子电气架构---EEA的发展趋势
  • 量化交易的基石:ExchangeSdk
  • (自用)仿写程序
  • 使用 Go 语言将 Base64 编码转换为 PDF 文件
  • [分享]iOS开发 - 实现UITableView Plain SectionView和table不停留一起滑动
  • Angular6错误 Service: No provider for Renderer2
  • Docker 笔记(2):Dockerfile
  • httpie使用详解
  • PAT A1120
  • Python学习之路13-记分
  • redis学习笔记(三):列表、集合、有序集合
  • TypeScript实现数据结构(一)栈,队列,链表
  • 阿里云Kubernetes容器服务上体验Knative
  • 表单中readonly的input等标签,禁止光标进入(focus)的几种方式
  • 测试如何在敏捷团队中工作?
  • 从重复到重用
  • 构建二叉树进行数值数组的去重及优化
  • 简单基于spring的redis配置(单机和集群模式)
  • 漂亮刷新控件-iOS
  • 体验javascript之美-第五课 匿名函数自执行和闭包是一回事儿吗?
  • 一、python与pycharm的安装
  • 与 ConTeXt MkIV 官方文档的接驳
  • ​力扣解法汇总1802. 有界数组中指定下标处的最大值
  • # Apache SeaTunnel 究竟是什么?
  • # windows 安装 mysql 显示 no packages found 解决方法
  • ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
  • ###STL(标准模板库)
  • #define 用法
  • $(function(){})与(function($){....})(jQuery)的区别
  • (173)FPGA约束:单周期时序分析或默认时序分析
  • (delphi11最新学习资料) Object Pascal 学习笔记---第13章第6节 (嵌套的Finally代码块)
  • (ibm)Java 语言的 XPath API
  • (java)关于Thread的挂起和恢复
  • (Matlab)使用竞争神经网络实现数据聚类
  • (博弈 sg入门)kiki's game -- hdu -- 2147
  • (二十四)Flask之flask-session组件
  • (附源码)springboot建达集团公司平台 毕业设计 141538
  • (十八)Flink CEP 详解
  • (原創) 如何使用ISO C++讀寫BMP圖檔? (C/C++) (Image Processing)
  • (转)PlayerPrefs在Windows下存到哪里去了?
  • (转)树状数组
  • (最新)华为 2024 届秋招-硬件技术工程师-单板硬件开发—机试题—(共12套)(每套四十题)
  • ***php进行支付宝开发中return_url和notify_url的区别分析
  • *setTimeout实现text输入在用户停顿时才调用事件!*