C++ (Qt) QSettings settings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(), QCoreApplication::applicationName()); settings.setFallbacksEnabled(false); settings.setValue("key", "value"); settings.sync();
/* When RTTI is not available, define this macro to force any uses of dynamic_cast to cause a compile failure.*/#ifdef QT_NO_DYNAMIC_CAST# define dynamic_cast QT_PREPEND_NAMESPACE(qt_dynamic_cast_check) template<typename T, typename X> T qt_dynamic_cast_check(X, T* = 0) { return T::dynamic_cast_will_always_fail_because_rtti_is_disabled; }#endif
%QT_DIR%\include/QtCore/../../src/corelib/global/qglobal.h:2505: error: 'dynamic_cast_will_always_fail_because_rtti_is_disabled' is not a member of 'MyClass*'