ID 512060 - Calling style() on an instance of a QWidget object causes a crash

Follow

Problem summary
Calling style() on an instance of a QWidget object causes a crash
 
Customer reported version
Mari 5.0v3
 
Customer reported platform
CentOS 7
 
Steps to reproduce
 
1) Launch Mari

2) Run the following snippet in the Python Console:

mari.app.activateMainWindow()widget = QtWidgets.QApplication.activeWindow()widget.style()
 
Expected behaviour
No crash.
 
Actual behaviour
Mari crashes.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Mari 5.0v3 - Windows 10 - CentOS 7.9
Mari 4.8v3 - Windows 10
Mari 4.8v1 - Windows 10 - CentOS 7.9 - regression
 
Unable to reproduce bug in:
Mari 4.7v7 - Windows 10 - CentOS 7.9 
 
Earliest version tested
Mari 4.7v7 - This issue doesn't appear in this version and has regressed
 
 

    We're sorry to hear that

    Please tell us why