Well, yeah, if you look at the contents of QtGlobal, it is:
#include "qglobal.h"
#include "qglobal.h"
To copy to clipboard, switch view to plain text mode

But in any case, these export and import macros are only used for building Windows DLLs. They are not used on linux platforms, and are typically #define to be nothing, usually something like this:
#ifdef _WIN32 || _WIN64
#define Q_DECL_EXPORT __declspec(dllexport)
#define Q_DECL_IMPORT __declspec(dllimport)
#else
#define Q_DECL_EXPORT
#define Q_DECL_IMPORT
#endif
#ifdef _WIN32 || _WIN64
#define Q_DECL_EXPORT __declspec(dllexport)
#define Q_DECL_IMPORT __declspec(dllimport)
#else
#define Q_DECL_EXPORT
#define Q_DECL_IMPORT
#endif
To copy to clipboard, switch view to plain text mode
So in fact you don't need to put any type of declaration in front of your class names.
Bookmarks