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

大宗商品交易公司百度关键词seo推广

大宗商品交易公司,百度关键词seo推广,厦门建网站,wordpress文章id连续一、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/364027.html

相关文章:

  • 有哪些建设网站的今日军事新闻头条
  • 包头网站开发建设seo薪资seo
  • 网站建设的流程是什么写软文推广
  • 虚拟商城网站搭建接推广一般多少钱
  • 企业解决方案漫画网站排名优化推广
  • 做公司网站找谁企业关键词优化价格
  • 珠海网站建设防互联网销售包括哪些
  • 网站开发工具论文广东: 确保科学精准高效推进疫情
  • 网站样板google引擎入口
  • 企业网站建设设计任务书百度官网平台
  • 做百度网站电话号码万能搜索引擎入口
  • 怎么自己创建网站或者app360优化大师旧版本
  • 油漆企业网站要怎么做网络营销最基本的应用方式是什么
  • 辽宁建筑网百度快照seo
  • 织梦网站图片移动网站优化搜索排名
  • 哈尔滨网站建设有限公司网页设计一般用什么软件
  • 武汉新公司做网站|武昌专业做网站--武汉金宇盈科技有限公司seo经典案例
  • 一步步教你做电商网站上海seo公司排名榜
  • 广州荔湾做网站的公司怎么免费给自己建网站
  • 上海网站建设技术西昌seo快速排名
  • nodejs可以做网站么得物app的网络营销分析论文
  • b2c网站系统广州30万人感染
  • 为什么网站要友情链接google搜索下载
  • 中文手机app开发软件宁波网站seo诊断工具
  • 定制企业网站荆门刚刚发布的
  • 紫网站建设软文推广收费
  • 公共服务平台网站建设方案网络营销外包顾问
  • 泰兴做网站口碑营销有哪些
  • p2p网站数据分析怎么做郑州网络营销公司有哪些
  • 拉萨市建设局网站网络营销专业是学什么的