Eu encontrei a solução:
- remova o Qt4 pelo gerenciador de pacotes
- instale o Qt5 por meio do gerenciador de pacotes
- excluir Qt da pasta inicial
- qtcreator ainda ignora
CONFIG += C++14
ao compilar com Clang (╯ ° □ °) ╯︵ ┻━┻ - Edite
usr/lib/x64_84-linux-gnu/qt5/mkspecs/features/c++14.prf
e comente os guardas que pretendem aplicar apenas-std=c++1y
ao Clang 3.2 e superior (que parecem estar aplicando apesar de ter apenas o Clang 3.7 instalado)
Arquivo c++14.prf
modificado:
intel_icc {
# ICC does not support C++14 yet
} else: clang {
# # Clang has supported -std=c++1y since version 3.2
# greaterThan(QT_CLANG_MAJOR_VERSION, 3)|greaterThan(QT_CLANG_MINOR_VERSION, 1): \
QMAKE_CXXFLAGS_CXX11 = -std=c++14
# # Unknown how long Apple Clang has supported -std=c++1y, but at least since XCode 5.0
# greaterThan(QT_APPLE_CLANG_MAJOR_VERSION, 4): \
# QMAKE_CXXFLAGS_CXX11 = -std=c++1y
} else: gcc {
# GCC has supported -std=c++1y since 4.8
greaterThan(QT_GCC_MAJOR_VERSION, 4)|greaterThan(QT_GCC_MINOR_VERSION, 7): \
QMAKE_CXXFLAGS_CXX11 = -std=c++1y
}
# Delegate to c++11.prf
include(c++11.prf)