link: Create multiple windows in PySide6
Problem:
The tutorial says: “One solution is to simply check whether the window has already been created before creating it. The example below shows this in action.” However, the provided code is incorrect and fails to solve the problem of window re - creation.After clicking the button, a new window will be created instead of showing the previous one.