gpt4 book ai didi

c++ - setInformativeText 和 setText 功能上有什么区别?

转载 作者:行者123 更新时间:2023-11-30 01:45:27 25 4
gpt4 key购买 nike

在QT的QMessageBox类中有setText和setInformativeText函数,第二个函数在做第一个函数的时候有什么作用?

最佳答案

Qt 文档中关于informativeText 的说明:

On the Mac, this text appears in small system font below the text(). On other platforms, it is simply appended to the existing text.

因此,如果您不在 Mac 上使用您的应用程序,那么您可以将 setText 与您想要显示给用户的整个文本一起使用。

关于c++ - setInformativeText 和 setText 功能上有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34620678/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com