在一行中显示没有任何丰富文本的工具提示很好。但我的工具提示里有丰富的文字。
QString tooltip="<span class=nobr>This is a much longer line than the first</span>";这是显示在3行。我怎么能把它限制在1行。我试过的东西
QString tooltip="<nobr>This is a much longer line than the first</nobr>";
QString tooltip="<span class=nobr>This is a much longer line than the first</span>";
QString tooltip="<span 'white-space:nowrap'>This is a much longer line than the first</span>";如何在单行中显示包含丰富文本的工具提示?谢谢
发布于 2015-01-21 12:18:08
文档声明:
.
所以像这样的东西会起作用:
QString tooltip = "<p style='white-space:pre'>This is a much longer line than the first</p>";https://stackoverflow.com/questions/28066310
复制相似问题