The version of window.h in the 4.6 docs (here) looks like this:
#ifndef WINDOW_H
#define WINDOW_H
#include <QDialog>
#include <QDir>
. . .
#ifndef WINDOW_H
#define WINDOW_H
#include <QDialog>
#include <QDir>
class QComboBox;
. . .
To copy to clipboard, switch view to plain text mode
And in qdir.h you have:
#ifndef QDIR_H
#define QDIR_H
#include <QtCore/qstring.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qstringlist.h>
#ifndef QDIR_H
#define QDIR_H
#include <QtCore/qstring.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qstringlist.h>
To copy to clipboard, switch view to plain text mode
That example won't compile on my machine with QDir forward declared.
Bookmarks