fatal error: QStringRef: No such file or directory
Unsolved
General and Desktop
-
Hi all,
I'm developing an application using Qt 6.2.4 compiled and build by myself.
Now I need to:
#include <QStringRef>
but I get the error in the title of post:
QStringRef: No such file or directory
I have installed qt in windows. What do you think is the problem?
-
QStringRef is removed in Qt 6. You can write your code to use the Qt 6 classes from the start (preferred) or using the compatibility module.
-
Thanks You!
Mr. Chris,
I have used the compatibility module it was worked.
-
What I did is I installed the Qt5 as I wasn't able to get away with the error
/home/devansh/repo/src/libs/languageserverprotocol/jsonkeys.h:6:10: fatal error: QLatin1StringView: No such file or directory 6 | #include <QLatin1StringView> | ^~~~~~~~~~~~~~~~~~~ compilation terminated. [76/2753] Building CXX object src/libs/extensionsystem/CMakeFiles/ExtensionSystem.dir/pluginmanager.cpp.o ninja: build stopped: subcommand failed.