[Qt-creator] pimpl autocomplete?

Linos info at linos.es
Mon Sep 17 21:52:39 CEST 2012


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.

Regards,
Miguel Angel.



More information about the Qt-creator mailing list