[Qt-creator] How set __cplusplus more than 201103L in QtC Editor?

Eike Ziller Eike.Ziller at qt.io
Tue Jan 2 09:40:54 CET 2018



> On 1. Jan 2018, at 18:39, Карелин Павел <hkarel at yandex.ru> wrote:
> 
> 
> 
> 01.01.2018 20:34, timur.kristof at gmail.com пишет:
>> Did you try with the clang code model?
> I use the GCC compiler only. Is it possible to use the clang model in this case? In addition, I have a fairly old OS: Ubuntu 14.04.

Which compiler you use for compiling your code does not really matter for the decision on the code model that you use in Qt Creator (except possibly in borderline cases that you probably do not care about...). Even compiler specific defines should be correctly identifying your compiler to be GCC when you specify this in the kit.
So you should definitely try the Clang code model - it handles many template situations and most C++11/14/17 situations much better than the built-in model.

Br, Eike

> 
>> 
>> On Mon, 2018-01-01 at 20:17 +0300, Карелин Павел wrote:
>>> Hi! I congratulate all with come New year!
>>> 
>>> In my project I use std::condition_variable. But using std::condition_variable is not very convenient, since its methods are not available in the QtC editor. See picture in attachment.
>>> How to make std::condition_variable methods accessible?
>>> I use QtC 4.5 gitrev: 30bd05b792259a559e98c6a19035f7b6adaac1ce
>>> 
>>> --
>>> BR, Pavel Karelin
>>> _______________________________________________
>>> Qt-creator mailing list
>>> 
>>> Qt-creator at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
> 
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator



More information about the Qt-creator mailing list