[QT 4.6] QTBUG-11658 (Crash from stylesheet due to dangling widget pointers in cache)
-
Hello,
I have a big problem in my software. I am obliged to use Qt4.6 and i'm using a big stylesheet.
I have this bug (https://bugreports.qt.io/browse/QTBUG-11658) that causes crashes when closing tabs or mainwindows for example. Does anyone had the same issue ? Is there a way to avoid those crashes ?
Thanks a lot,
Benoit
-
Upgrade to Qt4.8 since it's fixed there. Or even better - upgrade to Qt5.
If you can't upgrade you have to check the difference between 4.7.x and 4.8.0 so you can maybe find out what changed and apply the patch to your old Qt version. -
@Ben35
It's a bug that was reported and resolved 8 years ago. No workaround is offered in the bug report. @Christian-Ehrlicher has suggested you compare the relevant differences in the solved release. I don't see that you're likely to get a better solution.... -
There is even the commit referenced in the bug report, which leads you to https://github.com/qt/qt/commit/7b63ce043dfaec5ec83d938b1cea8ee0ead614ff
So if you don't want to update, you can compile Qt 4.6 from source with this patch applied.
-
Hi,
Just in case, the official source tree is : http://code.qt.io/cgit/qt/qt.git/commit/?id=7b63ce043dfaec5ec83d938b1cea8ee0ead614ff