May-13-2022, 06:12 PM
Why the same window? Most applications that have a login use a dialog. If you really want the login to be a different "view" in the main window I suggest using a QStackedWidget. This is like a tabbed widget, but without the tabs. Your program can decide which view in the "stack" is currently on top.
https://www.tutorialspoint.com/pyqt/pyqt...widget.htm
https://www.tutorialspoint.com/pyqt/pyqt...widget.htm