Using purely Q_DECL_EXPORT isn't great because it doesn't switch to Q_DECL_IMPORT upon being used by external code.