Qt 6.11 is out! See what's new in the release
blog
How can i set <language conformance flag> like in Vs2017 ( /permissive/no)
-
QMAKE_CXXFLAGS += /permissive/no -
Perhaps it should be
/permissive-https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=vs-2019 -
Perhaps it should be
/permissive-https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=vs-2019 -
This might work:
QMAKE_CXXFLAGS -= /permissive- -
Until now the only workaround i found is (using Qt inside VS2017) :
After Using "Qt Visual Studio Tools" and setting the project in VS 2017 with "language conformance NO"
I had to do :
#undef slots
#include <torch/torch.h>
#define slots Q_SLOTS(Still not working with Qt creator/Qmake)
-
Hi,
Try adding:
CONFIG += no_keywordsto your .pro file.
This will disable the Qt specific keywords like signal and slot. You have to then use Q_SLOT and friends in your code.