Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. what is the correct way to build the application
QtWS25 Last Chance

what is the correct way to build the application

Scheduled Pinned Locked Moved Solved General and Desktop
python3pyqt5qtdesignerdesktop
3 Posts 2 Posters 526 Views
  • 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 Offline
    L Offline
    lanas
    wrote on 8 Jun 2022, 10:14 last edited by
    #1

    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
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 8 Jun 2022, 12:31 last edited by mrjj 6 Aug 2022, 12:32
      #2

      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
      2
      • L Offline
        L Offline
        lanas
        wrote on 8 Jun 2022, 13:22 last edited by
        #3

        thank you sir for your help

        1 Reply Last reply
        0

        3/3

        8 Jun 2022, 13:22

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved