当我显示带有此代码的messagebox时
def exitActionProcedure(self, ask):
"""
# Method: exitActionProcedure.
# Description: The procedure for closing the application
# and all the opened files.
"""
if ask is True:
# self.statusbar.showMessage('exitActionProcedure start')
buttonReply = QMessageBox.question(
None, 'Exit', "Quit Program?",
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
if buttonReply == QMessageBox.Yes:
app.quit()
else:
app.quit()
这是显示的
按alt键时,按钮中会显示下划线/快捷键 像这样
如何在不按alt键的情况下显示下划线/快捷键
该修复程序是对pyqt5 5.15.0的升级 感谢eyllanesc指出这一点
你可以试试setting the style of your QApplication。在我的Windows计算机上,只有Fusion样式显示下划线
我从菜单中的表单…预览中获得了Qt Designer的样式名称。Linux或Mac可能有不同的可用样式
守则:
qstyle.ui:
相关问题 更多 >
编程相关推荐