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. Idea how to create professional app

Idea how to create professional app

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 339 Views 2 Watching
  • 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.
  • M Offline
    M Offline
    MAX001
    wrote on last edited by
    #1

    I wanna create multiwindowed app or it names like frames.
    I mean transitions in app and change layout widgets by clicking on buttons.
    How to create it more eficient?
    Should I create class MainWindow and first frame will be a set of couple of widgets by clicking on the button how i can delete all widgets (clear Layout) and fill with other type of widgets and it will be a second frame and so on.
    Such "Frames" should be as methods or classes ? Every new "Frame" = new class Frame 1,2,3... or def frame1() def frame2()

    JonBJ 1 Reply Last reply
    0
    • M MAX001

      I wanna create multiwindowed app or it names like frames.
      I mean transitions in app and change layout widgets by clicking on buttons.
      How to create it more eficient?
      Should I create class MainWindow and first frame will be a set of couple of widgets by clicking on the button how i can delete all widgets (clear Layout) and fill with other type of widgets and it will be a second frame and so on.
      Such "Frames" should be as methods or classes ? Every new "Frame" = new class Frame 1,2,3... or def frame1() def frame2()

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @MAX001
      It is hard to answer from this description. But did you maybe look at QWizard for "stepping through" a series of different looking views, QStackedWidget for a general one? Not my area, but if you want "transitions" and "look slick" you might also consider QML instead of widgets?

      M 1 Reply Last reply
      0
      • JonBJ JonB

        @MAX001
        It is hard to answer from this description. But did you maybe look at QWizard for "stepping through" a series of different looking views, QStackedWidget for a general one? Not my area, but if you want "transitions" and "look slick" you might also consider QML instead of widgets?

        M Offline
        M Offline
        MAX001
        wrote on last edited by
        #3

        @JonB On transition I mean like make a click all widgets delete and load another Layout with other widgets.
        For example File Explorer click on disc D:/ opens D:/ click on inside folder it opens
        Without breaking windows frames etc. Click load other layout click another one click other one.
        Ps Sorry of my describes )))

        JonBJ 1 Reply Last reply
        0
        • M MAX001

          @JonB On transition I mean like make a click all widgets delete and load another Layout with other widgets.
          For example File Explorer click on disc D:/ opens D:/ click on inside folder it opens
          Without breaking windows frames etc. Click load other layout click another one click other one.
          Ps Sorry of my describes )))

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @MAX001
          Look at the two classes I suggested then. The fundamental is QStackedWidget. That way you do not have to hide/show/change layout on multiple things.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Encapsulation is one of the key here.

            If you have several widgets for different actions in your application, then create separate widgets and give them a a proper API to interact with the other components of your application.

            Trying to build and rebuild your UI only functions will make your code hard to reason about and maintain.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2

            • Login

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