Qt: UI interaction - change configuration content - window title + * number

1. Set the window name in the specified format

	// QWidget::setWindowModified: The window title does not contain a '[*]' placeholder
	setWindowTitle(tr("%1[*]").arg("Untitled"));

2. When the setting is changed, the setting window is modified

	setWindowModified(true);
	setWindowModified(false);

Guess you like

Origin blog.csdn.net/CXYYL/article/details/124604952
Recommended