diff options
| author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2013-12-04 13:24:21 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-04 14:49:05 +0100 |
| commit | b05b940185450af70791befd47b2dd47eb0acfd5 (patch) | |
| tree | 1f8da6e3d3e8edb1c5870ccae97ea26f3766c5ed /src/widgets/doc/snippets/widgetdelegate.cpp | |
| parent | 520eee8570c8ddf4014d896ae3f121c315274000 (diff) | |
iOS: fix assert when using QOffscreenSurface
Qt defaults to creating a QWindow as offscreen surface
if QPlatformIntegration::createPlatformOffscreenSurface
returns 0. Using an offscreen surface is often done
in a background thread, which is problematic, since then
a QIOSWindow will also be created in a background thread.
According to Apple docs, working with a UIView from other
threads than the main thread should not be done. In our
case, we instead hit an assert in QApplication that
checks for the same.
As a quick fix for Qt 5.2, we remove the offending call that
causes the assert, since we anyway will call the same function
lazily when becoming first responder.
Task-number: QTBUG-35378
Change-Id: Id35462f99783a9748c688b163f6497de9bfff73e
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/widgets/doc/snippets/widgetdelegate.cpp')
0 files changed, 0 insertions, 0 deletions
