QMessageBox 是否可以拥有那些漂亮的箭头按钮之一,
Windows 7 必须在对话框中显示更多文本?
例如:
图中的“详细信息”按钮。
它可能由自定义按钮和图标(或可点击的 Qlabel),
但我想知道是否有一个我还没有发现的高度抽象的 Qt 函数,
它将处理所有窗口大小调整、转换等
(我使用的是 python 2,7 和 PyQt4,但我假设任何适当的 Qt 函数都会受到支持)
Is it possible for a QMessageBox to have one of those nifty arrow buttons,
that Windows 7 has to show more text in a dialog?
Eg:
The "details" button in this picture.
It could probably be made by a custom button and icon (or a clickable Qlabel),
but I'm wondering if there's a highly abstracted Qt function for it I haven't discovered,
which will deal with all the window resizing, transition, etc.
(I'm using python 2,7 and PyQt4, but I assume that any appropriate Qt function will be supported)
发布评论
评论(2)
我没有 Windows 7 来测试这一点,但您可能想尝试 setDetailedText: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmessagebox.html#setDetailedText。在 MacOS 上它做了类似的事情。
I don't have a Windows 7 to test this, but you may want to try setDetailedText: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmessagebox.html#setDetailedText. On MacOS it does something similar.
Qt是跨平台的,所以它不能实现带有样式的按钮,只有win7支持。但您可以轻松地使按钮看起来相似。
Qt is cross platform, so It can't implement a button with a style, that only win7 support. But you can easily make button looks similar.