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

大型网站开发php框架河南科技园网站建设

大型网站开发php框架,河南科技园网站建设,如何用自己公司网站做邮箱,装饰网站建设流程一、Qt Widgets 问题交流 1. 二、Qt Quick 问题交流 1.MenuItem设置enable:false后没法更新hover样式 菜单有时候需要禁用某些选项,使之不可点击,但设置enable:false后就不会更新hover或者highlighted等状态了。可以保留enable:true,自定…

一、Qt Widgets 问题交流

1.

二、Qt Quick 问题交流

1.MenuItem设置enable:false后没法更新hover样式

菜单有时候需要禁用某些选项,使之不可点击,但设置enable:false后就不会更新hover或者highlighted等状态了。可以保留enable:true,自定义过滤hover和点击事件,比如放一个MouseArea在上面拦截点击事件,同时过滤MenuItem的快捷键点击事件。

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Window 2.15// 菜单
Menu {id: controlproperty bool clickable: trueimplicitWidth: 100// 作为二级菜单,不可点击高度设置成0就不会展开了implicitHeight: clickable ? contentHeight : 0margins: 0bottomInset: 0topInset: 0leftInset: 0rightInset: 0padding: 1delegate: MyMenuItem {}contentItem: ListView {implicitHeight: contentHeightmodel: control.contentModelinteractive: Window.window ? contentHeight > Window.window.height : falseclip: truecurrentIndex: control.currentIndexScrollIndicator.vertical: ScrollIndicator {}}background: Rectangle {border.color: "black"}
}
import QtQuick 2.15
import QtQuick.Controls 2.15// 菜单项
MenuItem {id: control// 有子菜单就用子菜单的属性值property bool clickable: subMenu ? subMenu.clickable : trueimplicitWidth: 100implicitHeight: 30// 屏蔽快捷键点击Keys.onPressed: event.accepted = acceptKeyClick(event.key)Keys.onReleased: event.accepted = acceptKeyClick(event.key)function acceptKeyClick(key) {return !clickable && (key === Qt.Key_Space || key === Qt.Key_Return || key === Qt.Key_Enter)}contentItem: Text {readonly property real arrowPadding: (control.subMenu && control.arrow ? control.arrow.width: 0)readonly property real indicatorPadding: (control.indicator && control.indicator.visible ? control.indicator.width: 0)leftPadding: indicatorPaddingrightPadding: arrowPaddingtext: control.textcolor: enabled && clickable ? "red" : "gray"}background: Rectangle {color: highlighted ? "orange" : "white"}// 用MouseArea挡住就能保留hover状态且不可点击了MouseArea {anchors.fill: parenthoverEnabled: falsevisible: !clickable}
}
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15Window {width: 640height: 480visible: truetitle: qsTr("GongJianBo")MyMenu {id: ctx_menuMyMenuItem {text: "A"}MyMenuItem {text: "B"// 自定义不可点击时也能处理hover/highlighted样式clickable: false}MyMenuItem {text: "C"// 设置enabled:false后不会更新hover/highlighted状态enabled: false}MenuSeparator {}MyMenu {title: "A"MyMenuItem {text: "A"}MyMenuItem {text: "B"}}MyMenu {title: "B"clickable: falseMyMenuItem {text: "A"}MyMenuItem {text: "B"}}MyMenu {title: "C"enabled: falseMyMenuItem {text: "A"}MyMenuItem {text: "B"}}}MouseArea {anchors.fill: parentacceptedButtons: Qt.RightButtononClicked: {ctx_menu.x = mouseXctx_menu.y = mouseYctx_menu.open()}}
}

三、其他

1.先睡个觉吧
http://www.dtcms.com/wzjs/836362.html

相关文章:

  • 金融网站排名优化网站标题写什么作用
  • 广州比较好的网站建设企业学校网站总务建设
  • 策划公司网站wordpress vip购买页面
  • seo整站优化方案建设网站之前都需要准备什么问题
  • 网站建设嗟商文件vs2012解决方案做网站
  • 京东网站开发需求哪些网站可以免费做推广
  • 宣传网站建设方案模板商品网站源码
  • 上海 网站备案系统wordpress添加二维码弹窗
  • 无锡营销网站建设湖南中小企业建站价格
  • 用word 做网站网页设计作业怎么做网站
  • 刚做的网站多久能被搜索到文山seo
  • 做奥网站建网站要钱吗
  • 淘宝客导购网站建设?游戏网站建设公司
  • 网站设计包括哪些步骤成都百度网站优化
  • 政和网站建设500套wordpress模板下载
  • 网站建设平台选用分析一台ip做两个网站
  • 网站项目开发收费标准河南便宜网站建设价格
  • 微信卖水果链接网站怎么做最好看免费观看高清大全追风者
  • 中企动力是国企还是央企竞价托管优化公司
  • 番禺网站开发系统泰安做网络推广的公司
  • 公司做网站文案怎么写wordpress 酒店预订
  • 如何做彩票销售网站凡科建站容易吗
  • 国内网站开发公司外星人建设的网站
  • 公司seo是指什么意思wordpress如何做seo
  • 网站游戏网站怎么建设加盟类网站怎么做
  • 南平建设集团网站用c 做网站
  • 广西网站建设公司招聘洛阳市建设厅网站
  • 西安网站排名分析店铺推广方法
  • 网站开发时间表pc端自定义页设计与制作
  • 网站建设公司要多少钱福州网站建设企业哪家好?