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.
  • M Offline
    M Offline
    MikhailG
    wrote on 8 Feb 2017, 12:46 last edited by MikhailG 2 Sept 2017, 07:37
    #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
    • P Offline
      P Offline
      p3c0
      Moderators
      wrote on 9 Feb 2017, 05:37 last edited by
      #2

      @MikhailG Where are you loading the menus ?

      157

      M 1 Reply Last reply 9 Feb 2017, 07:31
      0
      • P p3c0
        9 Feb 2017, 05:37

        @MikhailG Where are you loading the menus ?

        M Offline
        M Offline
        MikhailG
        wrote on 9 Feb 2017, 07:31 last edited by MikhailG 2 Sept 2017, 07:37
        #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
        • P Offline
          P Offline
          p3c0
          Moderators
          wrote on 9 Feb 2017, 07:44 last edited by p3c0 2 Sept 2017, 07:49
          #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

          M 1 Reply Last reply 9 Feb 2017, 08:01
          1
          • P p3c0
            9 Feb 2017, 07:44

            @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 ?

            M Offline
            M Offline
            MikhailG
            wrote on 9 Feb 2017, 08:01 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

            1/5

            8 Feb 2017, 12:46

            • Login

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