Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.7.3, 4.8.0
Description
According to the docs calling QWidget::setWindowModified( true ) should cause the event to be propagated up to the top-level parent widget.
Instead, the widget on which the above call is made makes a useless check to see if it's windowTitle() contains "[*]" which is very unlikely for a child widget. The function then does indeed create a QEvent with type() == ModifiedChange and sends the event.
The event is correctly passed over to the QWidget::changeEvent() function but this function does not correctly handle it. I think that it should check to see if this is a top-level window and then set the title if so. Or if it is not a top-level window propagate the event up to the parent widget and so on.
More info can be found at http://developer.qt.nokia.com/forums/viewthread/7176/