[Qt-creator] C++11 (e.g. std::thread) and code-completion in qtcreator
Wilhelm
wilhelm.meier at fh-kl.de
Mon Dec 12 20:23:19 CET 2011
Am 12.12.2011 15:51, schrieb Leandro T. C. Melo:
> On 12/12/2011 5:40 AM, ext Wilhelm wrote:
>> Hi all,
>>
>> the minimal example below compiles/executes fine, but I'm missing the
>> code-completion features of qtcreator: e.g. writing
>>
>> t.j<Ctrl-Space>
>>
>> doesn't show any code-completions.
>>
>> What am I missing here?
>>
>> ---
>>
>> #include<iostream>
>> #include<thread>
>>
>> void hello()
>> {
>> std::cout<< "Hello"<< std::endl;
>> }
>>
>> int main() {
>> std::thread t(hello);
>>
>> t.join();
>>
>> return 0;
>> }
>>
>
> Hi,
>
> I get completion normally for t in your code. Could you please verify
> whether your #include<thread> is actually found (or is it highlighted)?
Yes, it is found (it is *not* underlined) and I can switch to it using F2.
>
>
> Cheers,
> Leandro
>
--
Wilhelm
More information about the Qt-creator
mailing list