diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h
index 66cd067acebef035161f2376606f988b4236b0de..a0281d1c110a6dd2084c8148cad331d6f1fece68 100644
--- a/src/gui/accessible/qaccessible.h
+++ b/src/gui/accessible/qaccessible.h
@@ -396,7 +396,7 @@ public:
     static UpdateHandler installUpdateHandler(UpdateHandler);
     static RootObjectHandler installRootObjectHandler(RootObjectHandler);
 
-    class ActivationObserver
+    class Q_GUI_EXPORT ActivationObserver
     {
     public:
         virtual ~ActivationObserver();