[Qt-interest] forward declaration

Boudewijn Rempt boud at valdyas.org
Sat Dec 20 13:26:36 CET 2008


On Sat, 20 Dec 2008, ami guru wrote:

> Hello forum,
> 
> is there any difference between
> 
> class QTextDocument;
> 
> AND
> 
> QT_FORWARD_DECLARE_CLASS(QTextDocument)

This adds QT_BEGIN_NAMESPACE and QT_END_NAMESPACE around the forward declaration
if QT_NAMESAPCE is defined. 

Boudewijn




More information about the Qt-interest-old mailing list