[Qt-creator] pimpl autocomplete?

Ziller Eike Eike.Ziller at digia.com
Tue Sep 18 09:55:41 CEST 2012


You can also just use binaries from builds.qt-project.org/view/Qt%20Creator

Br, Eike

________________________________________
From: qt-creator-bounces+eike.ziller=digia.com at qt-project.org [qt-creator-bounces+eike.ziller=digia.com at qt-project.org] on behalf of Linos [info at linos.es]
Sent: 18 September 2012 00:29
To: Leandro T. C. Melo
Cc: Qt-creator at qt-project.org
Subject: Re: [Qt-creator] pimpl autocomplete?

On 17/09/12 23:39, Leandro T. C. Melo wrote:
> On Mon, Sep 17, 2012 at 9:52 PM, Linos <info at linos.es> wrote:
>> Hi,
>>         i am using Qt Creator 2.5.2 with Qt 4.8.2 in Arch Linux with kernel
>> 3.5.4-424-bfs x86_64 to edit a project that uses pimpl storing some variables in
>> a Private class, something like this (simplified):
>>
>>
>> ------------------------------------------------
>> stream.h
>>
>> #ifndef STREAM_H
>> #define STREAM_H
>>
>> #include <QObject>
>>
>> class Stream: public QObject
>> {
>> Q_OBJECT
>>
>> public:
>>     Stream( QObject * parent = 0 );
>>     ~Stream();
>>     void funcTest();
>>
>> private:
>>     class Private;
>>     Private *d;
>> };
>>
>> #endif
>>
>>
>> ------------------------------------------------
>> stream.cpp
>>
>> class Stream::Private
>> {
>> public:
>>
>>         QString mode;
>> };
>>
>> Stream::Stream( QObject * parent )
>>        :QObject(parent), d(new Private(this))
>> {
>> }
>>
>> Stream::funcTest()
>> {
>>         d.  <--- autocomplete fails
>> }
>>
>>
>> -----------------------------------------------
>> it's this expected behaviour? i have tested Qt sources and Qt Creator
>> autocomplete correctly the pimpl classes of Qt source code.
>
> Hi,
>
> yes, this particular case doesn't work on 2.5 but it is already
> implemented on 2.6. You can give it a try with the Beta release.
>
> --
> Leandro T. C. Melo
> http://www.ltcmelo.com
>

I will compile and start using it tomorrow :) Thanks!

Regards,
Miguel Ángel.
_______________________________________________
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