qt5base-lts/tests/auto/widgets
Eskil Abrahamsen Blomfeldt f71048a531 Fix crash when combining QOpenGLWidget, QStaticText and Qt Quick
Under certain circumstances, if you had a widget with a QOpenGLPaintEngine,
and drew QStaticText into this, and then later had Qt Quick access the same
cache and try to resize it, we would get a crash because the resize function
would have a pointer to the paint engine and try to access its shader manager
(which would now be null, since this is outside the begin()/end() phase of the
paint engine.

The solution is to reset the paint engine pointer to null on the cache once it
has been populated and it is no longer needed.

[ChangeLog][QtGui][Text] Fixed a possible crash when combining QStaticText,
QOpenGLWidget and Qt Quick in the same application.

Task-number: QTBUG-70096
Change-Id: I7383ad7456d1a72499cfcd2da09a5a808d4b3eff
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-08-24 08:30:28 +00:00
..
dialogs Make QMessageBox window with the detailed text closable 2018-08-14 04:39:05 +00:00
effects tests/auto/widgets/{effects,styles}: Avoid unconditional qWait()s 2018-04-25 05:47:01 +00:00
graphicsview Make sure we can build with -no-feature-draganddrop 2018-05-29 18:31:35 +00:00
itemviews QHeaderView: Send the StatusTip events to itself if there is no parent 2018-06-14 04:21:35 +00:00
kernel Make tests compile for Android 2018-06-25 08:01:19 +00:00
styles Reset geometry constraints when removing stylesheet 2018-07-17 11:24:29 +00:00
util tests/auto/widgets/util: Avoid unconditional qWait()s 2018-04-13 12:32:52 +00:00
widgets Fix crash when combining QOpenGLWidget, QStaticText and Qt Quick 2018-08-24 08:30:28 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00