🐛 修复聊天记录显示不全 #88

This commit is contained in:
CoderKang
2023-12-06 23:54:12 +08:00
parent b6f041b67a
commit f6754c0db8
3 changed files with 26 additions and 6 deletions
+2
View File
@@ -17,6 +17,8 @@ class TextMessage(QLabel):
heightSingal = pyqtSignal(int)
def __init__(self, text, is_send=False, parent=None):
if isinstance(text, bytes):
text = text.decode('utf-8')
super(TextMessage, self).__init__(text, parent)
font = QFont('微软雅黑', 12)
self.setFont(font)