Skip to content Skip to sidebar Skip to footer

Showing And Hiding Multiple Windows In Pyqt5

I'm working on a project with UI and I started to do it with PyQt5. So far I watched lots of videos read some tutorials and have progress on the project. Since PyQt is a binding of

Solution 1:

One way to solve this is to use another class as a controller for all of the windows you want to show.

In each window you will send a signal when you want to switch windows and it is up to this controller class to decide how to handle the signal when received and decide which window to show. Any arguments that you need passed can be passed through the signals.

Here is a simplified complete working example.

Post a Comment for "Showing And Hiding Multiple Windows In Pyqt5"