View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0037452||Lazarus||LCL||public||2020-07-30 19:38||2020-08-05 15:42|
|Reporter||Reinhard Berger||Assigned To||Zeljan Rikalo|
|Status||resolved||Resolution||no change required|
|Product Version||2.1 (SVN)|
|Summary||0037452: SigSev Exception when closing MDI Style forms|
|Description||I don't know if this is a bug or not, but since it only appears on all Qt widgetsets and not on GTK2 i'll post it.|
Whenever a form calls a 2nd form with the property "fsMDIForm" set under "FormSytle" and i close this form, an exception will appear in
function TQtWidget.GetWidget: QWidgetH;
Result := QWidgetH(TheObject);
|Steps To Reproduce||Create Form1|
set FormSytle from "fsNormal" to "fsMDIForm"
Exception will appear.
|Additional Information||works without exception under GTK2.|
Note : I don't need that style set, it was just a mistake but wondered why it works under GTK2 and not under Qt4/Qt5
|Tags||No tags attached.|
|Fixed in Revision|
1.Please attach example project.
2.MDI is not implemented under gtk2/gtk3
Qt-MDI.zip (109,327 bytes)
This is wrong usage of MDI. You should set Form1 to fsMDIForm and Form2 to fsMDIChild. Also mdi children cannot be shown modal.
Such code will crash on any mdi implemented widgetset.
That was not intended.
The purpose was not to create a MDI form.
Somehow i have set this style on the form, and always used gtk2 as toolkit where this exception does not appear.
Just as i switched to qt this exception appeared , and i didn't know why until i found out that the reason was setting the wrong value to "FormStyle"
Maybe a warning message in the messagelog during compiling would be a good reason to prevent this.
||Resolved as "no change required", so pls close.|
|2020-07-30 19:38||Reinhard Berger||New Issue|
|2020-07-30 19:38||Reinhard Berger||File Added: Screenshot-qt-mdi.png|
|2020-08-05 10:16||Zeljan Rikalo||Assigned To||=> Zeljan Rikalo|
|2020-08-05 10:16||Zeljan Rikalo||Status||new => assigned|
|2020-08-05 10:17||Zeljan Rikalo||Status||assigned => feedback|
|2020-08-05 10:17||Zeljan Rikalo||LazTarget||=> -|
|2020-08-05 10:17||Zeljan Rikalo||Note Added: 0124576|
|2020-08-05 12:50||Reinhard Berger||Note Added: 0124578|
|2020-08-05 12:50||Reinhard Berger||File Added: Qt-MDI.zip|
|2020-08-05 12:50||Reinhard Berger||Status||feedback => assigned|
|2020-08-05 14:05||Zeljan Rikalo||Note Added: 0124579|
|2020-08-05 14:18||Reinhard Berger||Note Added: 0124580|
|2020-08-05 15:42||Zeljan Rikalo||Status||assigned => resolved|
|2020-08-05 15:42||Zeljan Rikalo||Resolution||open => no change required|
|2020-08-05 15:42||Zeljan Rikalo||Widgetset||QT, QT5 => QT, QT5|
|2020-08-05 15:42||Zeljan Rikalo||Note Added: 0124581|