what is the correct way to build the application
-
I'm new to pyqt and programming in general (few months in java and php ), i'm creating a desktop application but in every comments in stack-overflow or in the forum here when i search for help , i saw people talk about the main windows , i want to ask if i should creat a main window and what i should to do with it if yes.
I'am creating CRUD APP in python
those are the interface i have. When i run the app i run it from login.py
-
Hi
The Main Window is often QMainWindow which allows Docks and QMenuBar as default.
That said, any QWidget can also be used as a window so it's not a must-have to use QMainWindow.Say for a small tool, one might just use a QWidget as the main window but for some bigger apps, there is a need for a toolbar, etc and QMainWindow can be used.
So to sum it up. You don't need to use a QMainWindow if you don't need the features it provides.
Also sometimes, we say the main window, just meaning the window that comes up first when we run the app. It's then more of a role than a special widget.