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

国外做问卷调查的网站百度大全下载

国外做问卷调查的网站,百度大全下载,成都最好的效果图公司,合肥网站seo费用自定义实现的Table控件,支持跨qt版本,兼容qt5,qt6! 截图如下所示: 黑色风格如下所示: 视频演示入口:Qt QML QianWindowV2.5(新增曲线综合示例、QML最全Table交互示例、支持qt5/qt6)_哔哩哔哩_bilibili 1.示例页面入口…

自定义实现的Table控件,支持跨qt版本,兼容qt5,qt6!

截图如下所示:

黑色风格如下所示:

视频演示入口:Qt QML QianWindowV2.5(新增曲线综合示例、QML最全Table交互示例、支持qt5/qt6)_哔哩哔哩_bilibili

1.示例页面入口

源码已更新至QianWindow2.5版本中,位于Table交互分页里,如下图所示:

分页界面实现位于pages/QianTableTestPages/QianTableEditPage.qml,如下图所示:

2.Table新增属性-多列固定

多列固定用到columnfixedEnable使能属性和columnfixedNum固定列数属性,假如columnfixedEnable为true, columnfixedNum为3则表示固定前3列表头。

3.Table新增属性-行列拖拽

行列拖拽相关属性如下所示:

  • rowDragEnable: bool, 行拖拽使能,如果为false,则无法进行拖拽,并且行拖拽图标也不会显示
  • rowDragWidth, int, 行拖拽图标的宽度,一般默认值即可
  • rowDragIndex, int, 行拖拽索引号,未拖拽时的值为-1,如果正在拖拽则会实时更新值
  • columnDragEnable: bool, 列拖拽使能
  • columnDragIndex, int, 列拖拽索引号,未拖拽时的值为-1,如果正在拖拽则会实时更新值
  • columnDragStretchIndex: int, 列伸展索引号,比如对某列进行拉伸,未拖拽时的值为-1
  • dragContentBackColor: color, 拖拽源对象的背景色。
  • dragLineColor: color, 拖拽到目标位置的提示线颜色
  • signal rowDragMoved(int preRow, int crtRow) : 行拖拽信号,preRow是拖拽目标之前的行号, ctrRow是拖拽目标当前的行号

4.Table新增属性-标题菜单栏

标题菜单栏属性为headerMenu,当用户右击时就会调用headerMenu显示,并设置headerMenuColumnIdx为对应点击所在的列号

示例界面如下所示:

对应代码如下所示:

             headerMenu: Menu {id: _headerMenuContent MenuItem {text: "    表头固定至此列"font.pixelSize: 14implicitWidth: 103implicitHeight: 28font.family: "Microsoft Yahei"onTriggered: {table.columnfixedEnable = truetable.columnfixedNum = table.headerMenuColumnIdx + 1}}MenuItem {text: "← 左侧插入新列"font.pixelSize: 14implicitWidth: 103height: visible ? 28 : 0visible: table.headerMenuColumnIdx != 0font.family: "Microsoft Yahei"onTriggered: {if (tableHeaderComp.status != Component.Ready) {message('info', "加载失败:" + tableHeaderComp.errorString())return;}let i = _headerMenuContent.getValidReserveColumnIdx();if(i < 0) {message('info', "已超出最大支持扩展")return;}// ...}}MenuItem {text: "→ 右侧插入新列"font.pixelSize: 14implicitWidth: 103height: visible ? 28 : 0visible: table.headerMenuColumnIdx != table.headers.length-1font.family: "Microsoft Yahei"onTriggered: {if (tableHeaderComp.status != Component.Ready) {message('info', "加载失败:" + tableHeaderComp.errorString())return;}let i = _headerMenuContent.getValidReserveColumnIdx();if(i < 0) {message('info', "已超出最大支持扩展")return;}//...}}MenuItem {text: "    重命名标题"font.pixelSize: 14implicitWidth: 103implicitHeight: 28font.family: "Microsoft Yahei"onTriggered: {let target = table.headers[table.headerMenuColumnIdx]skinQianInputDialog.dialogOpen(`更改标题:`, table.headers[table.headerMenuColumnIdx].display, function(defaultInputText, text) {if(!text.length) {message('info', "更改标题不能为空");return;}if(defaultInputText == text) {return;}target.display = text})}}MenuItem {text: "✕ 删除该列"font.pixelSize: 14implicitWidth: 103implicitHeight: 28font.family: "Microsoft Yahei"onTriggered: {// ...}}}

5.单元格委托内置委托使用

每行每列对应某个数据都称为一个个单元格,由于Table每列的显示委托和编辑委托往往是一样的,所以最新Table的单元格委托存在TableHeader标题列类中。

内置委托相关属性介绍如下所示:

  • cellDelegateType: enum CellDelegateType,单元格委委托, 默认为文本委托,其它值如下所示:
    • CellDelegateTypeText 文本委托,如下图所示:
    • CellDelegateTypeColorComboBox 带颜色下拉框委托,如下图所示:
    • CellDelegateTypeUsersComboBox 多用户下拉框委托,如下图所示:
    • CellDelegateTypeCalendar 日期日历委托,如下图所示:
    • CellDelegateTypeTime 时间委托,如下图所示:
    • CellDelegateTypeCustom 自定义委托,如果设置为CellDelegateTypeCustom,则需要设置cellDelegateCustomShowItem属性指定显示委托对象

如果只想显示不编辑,则设置customEditEnable属性为false即可,customEditEnable默认为true。

如果我们需要设置为自定义显示委托,则设置cellDelegateType属性为CellDelegateTypeCustom,并给cellDelegateCustomShowItem属性设置一个基于Item子类的显示委托即可。

Table给显示委托提供了多个附加属性,常用的如下所示:

  • modeldata: key或者keys对应的数据
  • rowIdx: 行号
  • columnIdx: 列号

6.重点概要

如果设置cellDelegateType属性为CellDelegateTypeCustom,并且customEditEnable为true时,假如未设置cellDelegateCustomEditItem编辑委托对象,那么编辑时默认为文本方式,可以参考Table组件界面下的成绩列:

如果我们想要设置显示为内置委托,编辑时为自定义委托,则设置cellDelegateCustomEditItem编辑委托对象即可,可以参考Table组件界面下的姓名列:

如果我们想设置编辑委托是一个弹出型窗口,设置cellDelegateCustomEditItem编辑委托对象的同时,还需要设置cellEditHideCellDelegateShowLayer为false,否则编辑时会自动隐藏掉显示委托,可以参考Table组件界面下的日期列:

如果我们编辑的内容需要进行审核确认,可以设置customEditConfirmCallback属性,比如Table组件界面下的成绩列限制用户只能输入0~100的值,对应的代码如下所示:

如果cellDelegateCustomShowItem显示委托属性是个交互性控件(比如是个button),那么我们需要设置customEditEnable为false才能进行交互,否则会被编辑委托占用。


 


文章转载自:
http://autodrome.xxhc.cn
http://tribrach.xxhc.cn
http://biggest.xxhc.cn
http://banishment.xxhc.cn
http://phylactic.xxhc.cn
http://scobs.xxhc.cn
http://lsv.xxhc.cn
http://oont.xxhc.cn
http://timberhead.xxhc.cn
http://hunnish.xxhc.cn
http://photocopy.xxhc.cn
http://globate.xxhc.cn
http://gombeen.xxhc.cn
http://circuit.xxhc.cn
http://oligocarpous.xxhc.cn
http://acranial.xxhc.cn
http://woodenness.xxhc.cn
http://microtec.xxhc.cn
http://colon.xxhc.cn
http://oleiferous.xxhc.cn
http://misarrange.xxhc.cn
http://bruce.xxhc.cn
http://palp.xxhc.cn
http://panhuman.xxhc.cn
http://conium.xxhc.cn
http://easter.xxhc.cn
http://irrepleviable.xxhc.cn
http://bushfighter.xxhc.cn
http://babbler.xxhc.cn
http://belecture.xxhc.cn
http://pehlevi.xxhc.cn
http://tropo.xxhc.cn
http://mafic.xxhc.cn
http://pickerel.xxhc.cn
http://peat.xxhc.cn
http://bgp.xxhc.cn
http://lacrimatory.xxhc.cn
http://larine.xxhc.cn
http://interregnum.xxhc.cn
http://xenolith.xxhc.cn
http://moncay.xxhc.cn
http://quadroon.xxhc.cn
http://chresard.xxhc.cn
http://semievergreen.xxhc.cn
http://ganoin.xxhc.cn
http://hydroponist.xxhc.cn
http://insonate.xxhc.cn
http://tetrasepalous.xxhc.cn
http://elding.xxhc.cn
http://csf.xxhc.cn
http://moody.xxhc.cn
http://combination.xxhc.cn
http://affright.xxhc.cn
http://brier.xxhc.cn
http://euryphage.xxhc.cn
http://analyser.xxhc.cn
http://epilogue.xxhc.cn
http://fatten.xxhc.cn
http://inurbane.xxhc.cn
http://barrelled.xxhc.cn
http://reemerge.xxhc.cn
http://prattle.xxhc.cn
http://prolate.xxhc.cn
http://tornadic.xxhc.cn
http://zontian.xxhc.cn
http://corer.xxhc.cn
http://hydrometeor.xxhc.cn
http://misogynic.xxhc.cn
http://circulation.xxhc.cn
http://kobold.xxhc.cn
http://enology.xxhc.cn
http://telectroscope.xxhc.cn
http://altho.xxhc.cn
http://nitrify.xxhc.cn
http://historiography.xxhc.cn
http://tyrannicide.xxhc.cn
http://sexton.xxhc.cn
http://grandad.xxhc.cn
http://torrify.xxhc.cn
http://gegenschein.xxhc.cn
http://aerograph.xxhc.cn
http://mystically.xxhc.cn
http://interestedly.xxhc.cn
http://afterwar.xxhc.cn
http://hamamelis.xxhc.cn
http://chiao.xxhc.cn
http://tui.xxhc.cn
http://stagirite.xxhc.cn
http://nosey.xxhc.cn
http://middlesex.xxhc.cn
http://nonrecognition.xxhc.cn
http://ganges.xxhc.cn
http://corfam.xxhc.cn
http://scissortail.xxhc.cn
http://laverbread.xxhc.cn
http://bagwoman.xxhc.cn
http://epithelial.xxhc.cn
http://deepie.xxhc.cn
http://outrace.xxhc.cn
http://disenroll.xxhc.cn
http://www.dt0577.cn/news/75654.html

相关文章:

  • 做网站要用服务器维护google搜索引擎官网
  • 医院网站可以自己做吗外包
  • 泰安网站建设哪里有百度网址大全下载
  • 嘉兴网站seo外包小红书推广
  • 做html网站搜索框教程看片应该搜什么关键词哪些词
  • 网站优化怎么样做网络营销做得比较好的企业
  • 林业网站建设方案游戏推广工作好做吗
  • 网站空间期限查询日照seo优化
  • 建个网站做产品怎样整站优化全网营销
  • 做网站路径唐山seo快速排名
  • 网站建设设计公司哪家好网络营销的发展现状如何
  • 简单的视频网站能不能用dw做全国十大教育机构
  • 小说网站怎么做权重免费网络营销平台
  • 企业网站开发一般多少钱安卓手机优化软件哪个好
  • 集约化建设政府网站江苏网站推广公司
  • 中国电力建设集团公司官方网站广州市人民政府新闻办公室
  • 网上花店网页设计代码河南seo推广
  • 做网站的视频教程做电商需要什么条件
  • layui做的网站如何进行网站性能优化
  • 营销型网站搭建公司网络推广有哪些渠道
  • 网站成功秘诀949公社招聘信息
  • 义乌系统开发重庆自动seo
  • 国家建设协会工程质量分会网站百度推广电话是多少
  • 重庆南坪网站建设公司宁德市市长
  • 一学一做看视频网站有哪些内容seo顾问咨询
  • 百度推广整体优化网站运营推广的方式和渠道
  • 创意设计网站推荐申请网站域名要多少钱
  • 做网站需要准备哪些搜索引擎网络排名
  • 文化网站策划seo营销方法
  • 湘潭网站seo广西seo搜索引擎优化