diff --git a/sources/richtext/richtexteditor.cpp b/sources/richtext/richtexteditor.cpp index 9fe9d2321..3c45456d9 100644 --- a/sources/richtext/richtexteditor.cpp +++ b/sources/richtext/richtexteditor.cpp @@ -77,6 +77,12 @@ #include #include +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) +#include +#else +#define QStringView QStringRef +#endif + QT_BEGIN_NAMESPACE //static const char RichTextDialogGroupC[] = "RichTextDialog";