Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Is it OK to use multiple stackviews in an application?
Forum Updated to NodeBB v4.3 + New Features

Is it OK to use multiple stackviews in an application?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 812 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.
  • MikhailGM Offline
    MikhailGM Offline
    MikhailG
    wrote on last edited by MikhailG
    #1

    Hello! Do not know if it is Ok from design patterns point of view to use multiple stackviews.
    For instance I have main menu which contains two child menus. One of the child menus contains another menus.
    Image
    Thank you.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @MikhailG Where are you loading the menus ?

      157

      MikhailGM 1 Reply Last reply
      0
      • p3c0P p3c0

        @MikhailG Where are you loading the menus ?

        MikhailGM Offline
        MikhailGM Offline
        MikhailG
        wrote on last edited by MikhailG
        #3

        @p3c0 Thank you for your reply. I`m loading them in main.qml.

        ApplicationWindow {
            id:aplWin
            minimumWidth:  1280
            maximumWidth: minimumWidth
            minimumHeight: 1024
            maximumHeight: minimumHeight
            visible: true
        
            StackView {
                id: stackView
                anchors.fill: parent
                initialItem: SignInWin {}
            }
        }
        

        If autorization was successful than I want to load a Page that contains for buttons that represent another four pages and navigate among them using the StackView

        I hope I cleared that out.

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by p3c0
          #4

          @MikhailG so it you have a requirement as such then you have to go that way. May be you can try other alternatives to StackView but I guess there wont be. Check if you can settle with ListView.
          Also do you have any specific issues or errors if you go that way ?

          157

          MikhailGM 1 Reply Last reply
          1
          • p3c0P p3c0

            @MikhailG so it you have a requirement as such then you have to go that way. May be you can try other alternatives to StackView but I guess there wont be. Check if you can settle with ListView.
            Also do you have any specific issues or errors if you go that way ?

            MikhailGM Offline
            MikhailGM Offline
            MikhailG
            wrote on last edited by
            #5

            @p3c0 OK, thank you, I guess I will go this way.
            As for errors, well everything works fine for now.

            1 Reply Last reply
            0

            • Login

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