It boils down to reading the manual. Instead of using CXXFLAGS
in the .pro file, you need to use QMAKE_CXXFLAGS
as in:
main.cpp:
#include <cinttypes>
int main() { return 0; }
main.pro:
SOURCES += main.cpp
QMAKE_CXXFLAGS += -std=c++0x
More Related Contents:
- Adding external library into Qt Creator project
- How to link opencv in QtCreator and use Qt library
- Qt: can’t find -lGL error
- How to enable C++11 in Qt Creator?
- Qt Creator – Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild
- Windows C++ compiler with full C++11 support (should work with Qt) [closed]
- Where in Qt Creator do I pass arguments to a compiler?
- Making my own photo-mosaic app with Qt using C++
- How to avoid entering library’s source files while debugging in Qt Creator with gdb?
- what is the concept of evaluation of expression z = (y = 30) + (y = 10) + (y = 20); [closed]
- C++ 11: conversion const int* to int* using unordered_set::push
- Is cout synchronized/thread-safe?
- Is local static variable initialization thread-safe in C++11? [duplicate]
- Do rvalue references to const have any use?
- How to succinctly, portably, and thoroughly seed the mt19937 PRNG?
- Does constexpr imply inline?
- Do rvalue references allow dangling references?
- std::unique_ptr, deleters and the Win32 API
- C++ Modules – why were they removed from C++0x? Will they be back later on?
- Which headers in the C++ standard library are guaranteed to include another header?
- Default template argument when using std::enable_if as templ. param.: why OK with two template functions that differ only in the enable_if parameter?
- How can I use C++ 11 features in Clang?
- Questions about Hinnant’s stack allocator
- Equivalent of “using namespace X” for scoped enumerations?
- The implementation of random_device in VS2010?
- Futures vs. Promises
- Why does unique_ptr take two template parameters when shared_ptr only takes one?
- Can I use Qt without qmake or Qt Creator?
- STL algorithms: Why no additional interface for containers (additional to iterator pairs)?
- Does the C++ standard specify anything on the representation of floating point numbers?