当前位置: 首页 > 网络知识

Qt 虚拟键盘qtvirtualkeyboard遮挡QLineEdit问题

时间:2026-01-29 09:26:38
1.通过修改虚拟键盘源码 qtvirtualkeyboardeverywheresrc5.14.2\src\virtualkeyboard\desktopinputselectioncontrolpp:159
1 void DesktopInputSelectionControl::updateVisibility() 2 17 originalY = 0; 18 } 19 20 return; 21 } 22 const bool wasAnchorVisible = m_anchorHandleVisible; 23 const bool wasCursorVisible = m_cursorHandleVisible; 24 const bool makeVisible = (m_inputContext>isSelectionControlVisible() || m_handleState == HandleIsMoving) && m_enabled; 25 26 m_anchorHandleVisible = makeVisible; 27 if (QWindow *focusWindow = QGuiApplication::focusWindow()) 43 } 44 45 if (wasAnchorVisible != m_anchorHandleVisible) 53 54 m_cursorHandleVisible = makeVisible; 55 if (QWindow *focusWindow = QGuiApplication::focusWindow()) 64 65 if (wasCursorVisible != m_cursorHandleVisible) 73 }



上一篇:Qt 设置QPushButton背景色
下一篇:Q 虚拟键盘virtualkeyboard部署无法弹出的问题
Qt
  • 英特尔与 Vertiv 合作开发液冷 AI 处理器
  • 英特尔第五代 Xeon CPU 来了:详细信息和行业反应
  • 由于云计算放缓引发扩张担忧,甲骨文股价暴跌
  • Web开发状况报告详细介绍可组合架构的优点
  • 如何使用 PowerShell 的 Get-Date Cmdlet 创建时间戳
  • 美光在数据中心需求增长后给出了强有力的预测
  • 2027服务器市场价值将接近1960亿美元
  • 生成式人工智能的下一步是什么?
  • 分享在外部存储上安装Ubuntu的5种方法技巧
  • 全球数据中心发展的关键考虑因素
  • 英特尔与 Vertiv 合作开发液冷 AI 处理器

    英特尔第五代 Xeon CPU 来了:详细信息和行业反应

    由于云计算放缓引发扩张担忧,甲骨文股价暴跌

    Web开发状况报告详细介绍可组合架构的优点

    如何使用 PowerShell 的 Get-Date Cmdlet 创建时间戳

    美光在数据中心需求增长后给出了强有力的预测

    2027服务器市场价值将接近1960亿美元

    生成式人工智能的下一步是什么?

    分享在外部存储上安装Ubuntu的5种方法技巧

    全球数据中心发展的关键考虑因素