path: root/src/plugins/platforms/winrt/qwinrtintegration.h
diff options
authorMaurice Kalinowski <>2016-01-08 12:50:32 +0100
committerMaurice Kalinowski <>2016-01-11 10:06:36 +0000
commitbecbffe291c1105eb422e8dc66c67c5b6443b96c (patch)
tree0a1a7fc7839057ad5d4f824bb4f6a1b1be53b883 /src/plugins/platforms/winrt/qwinrtintegration.h
parentc4ecab7127807eddd820b5c747a805cf5b0fd06d (diff)
winphone: Properly close the application
When shutting down an application on Windows Phone the SceneGraph tries to create an offscreen surface to render into. If there is no offscreen surface available, it creates a new native window and tries to hide it. As the native event loop is about to shut down, creation fails and exceptions are raised. Instead we create a vanilla QPlatformOffscreenSurface. The SceneGraph recognizes it as such and can handle a proper cleanup on its own. Furthermore removing the suspend/resume handler in the destructor of QWinRTIntegration fails for Windows Phone as the application object itself does not accept this anymore. Hence skip this part for this platform. Task-number: QTBUG-49310 Change-Id: I02acdd5a635ef0b9d6ef8199376537b8f0f1a8fb Reviewed-by: Oliver Wolff <>
Diffstat (limited to 'src/plugins/platforms/winrt/qwinrtintegration.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/winrt/qwinrtintegration.h b/src/plugins/platforms/winrt/qwinrtintegration.h
index 5456f6922f..31a3ce7c1c 100644
--- a/src/plugins/platforms/winrt/qwinrtintegration.h
+++ b/src/plugins/platforms/winrt/qwinrtintegration.h
@@ -98,6 +98,7 @@ public:
QStringList themeNames() const Q_DECL_OVERRIDE;
QPlatformTheme *createPlatformTheme(const QString &name) const Q_DECL_OVERRIDE;
+ QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const Q_DECL_OVERRIDE;
HRESULT onBackButtonPressed(IInspectable *, ABI::Windows::Phone::UI::Input::IBackPressedEventArgs *args);