diff options
author | Zhang Yu <zhangyub@uniontech.com> | 2020-11-17 21:05:39 +0800 |
---|---|---|
committer | Zhang Yu <zhangyub@uniontech.com> | 2020-11-18 05:56:27 +0800 |
commit | 4df5f93018344f6cdc6cd5a08a084b1c61e0c076 (patch) | |
tree | 019f7d57ab22c6ec9de16084d5b88d34097db4ae /src/widgets/doc | |
parent | 34304e3100883187ca658b8c983af21549496b43 (diff) |
Fix QGraphicsItem crash if click right button of mouse
In this case, the 'parent' is QGraphicsTextItem which isn't a object
inheriting from QWidget. Converting QGraphicsTextItem to QWidget
by static_cast and using it as QWidget leads to crash.
Fixes: QTBUG-88309
Pick-to: 5.15
Change-Id: I3c583f43125eb36841848434d1fa9a135b0e9f57
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/doc')
0 files changed, 0 insertions, 0 deletions