Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved what is the correct way to build the application

    General and Desktop
    python3 pyqt5 qtdesigner desktop
    2
    3
    106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lanas last edited by

      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
      Capture.PNG

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by mrjj

        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.

        1 Reply Last reply Reply Quote 2
        • mrjj
          mrjj Lifetime Qt Champion last edited by mrjj

          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.

          1 Reply Last reply Reply Quote 2
          • L
            lanas last edited by

            thank you sir for your help

            1 Reply Last reply Reply Quote 0
            • First post
              Last post