diff --git a/src/markdownview.cpp b/src/markdownview.cpp index 18cd647..892ceed 100755 --- a/src/markdownview.cpp +++ b/src/markdownview.cpp @@ -14,5 +14,15 @@ MarkdownView::~MarkdownView() void MarkdownView::viewMarkdown(QString& text) { +#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) + QString tips = QString( + "NOTE: Your Qt version is lower than 5.14, so you can't preview Markdown for the time being." + "\n" + "\n" + "%1").arg(text); + ui.textEdit->setPlainText(tips); +#else ui.textEdit->setMarkdown(text); +#endif + } \ No newline at end of file