保持 Qt 工具提示打开 [英] Keep Qt tooltip open

查看:29
本文介绍了保持 Qt 工具提示打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 工具提示会在一定时间(5-32 秒 afaik)后关闭.在 Qt 中,它们似乎设置为 10 秒自动关闭.有什么办法可以改变这种行为吗?Qt 文档对此保持沉默.

Windows tooltips do close after a certain amount of time (5-32 sec afaik). In Qt they seem to be set to 10 sec autoclose. Is there any way I can alter this behaviour? Qt docs remain silent about that.

也许有任何自定义工具提示类可以使我变得粘滞?Qt Creator 使用某种自定义工具提示进行调试.

Maybe there are any custom tooltip classes around which I can make sticky? Qt Creator uses some sort of custom ToolTips for debugging.

谢谢!

推荐答案

我在 google 上搜索了qt tooltip delay",第二个链接将我发送到诺基亚常见问题解答,其中解释了工具提示计时器是硬编码的,并提供了解决方法"" 在这里:http://developer.qt.nokia.com/faq/answer/how_can_i_change_the_timeout_period_for_a_qtooltip

I googled "qt tooltip delay" and the second link sent me to the Nokia FAQ, where it explains that the tooltip timer is hardcoded, and gives a "workaround" for that here: http://developer.qt.nokia.com/faq/answer/how_can_i_change_the_timeout_period_for_a_qtooltip

然而,第一条评论说它只有在你想让工具提示延迟更短时才有效,而不是更长.我搜索中的第一个链接建议您自己修改类,但这可能不是一个好主意,尽管这可能是一个临时解决方案,因为此功能的建议似乎是很久以前发送的(自从诺基亚购买它们之前),并且它尚未实施.

Yet the first comment on that says that it only works if you want to make the tooltip delay shorter, not longer. The first link in my search suggest modifying the class yourself, but that's probably not a good idea, albeit it might be a temporary solution, since it seems the suggestion for this feature was sent ages ago (since before Nokia bought them), and it hasn't been implemented yet.

这篇关于保持 Qt 工具提示打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆