diff --git a/frontend/view/result-view-delegate.cpp b/frontend/view/result-view-delegate.cpp index 2e151a7..e5b8de3 100644 --- a/frontend/view/result-view-delegate.cpp +++ b/frontend/view/result-view-delegate.cpp @@ -7,6 +7,8 @@ ResultViewDelegate::ResultViewDelegate(QObject *parent) : QStyledItemDelegate(pa m_textDoc(new QTextDocument(this)), m_hightLightEffectHelper(new HightLightEffectHelper(this)) { + m_textDoc->setDefaultFont(QApplication::font()); + connect(qApp, &QApplication::fontChanged, m_textDoc, &QTextDocument::setDefaultFont); } void ResultViewDelegate::setSearchKeyword(const QString ®FindKeyWords)