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. Common banner on top a PageStackWindows
Forum Updated to NodeBB v4.3 + New Features

Common banner on top a PageStackWindows

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 2 Posters 2.4k Views 1 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.
  • I Offline
    I Offline
    Ices_Eyes
    wrote on last edited by
    #1

    Hi all :P

    I'm tryng to reproduce such kind of visualization, but I'm not able to obtain what I need...

    The idea is that I need to have a banner in common to all my app pages, and on the bottom of the banner different kind of pages, one is a listview, then when I tap over a list item and it loads content on a tabbarlayout.
    But either the list view shoul scroll at the bottom of the banner and the tabbar should appear under the banner...

    Any advice on how to do this? :) Should I add the banner on top of every designed page used in the pagestackwindows? But in this case, I've been able to do it with the tabbar, but with the listView, the list start correctly under the banned, -but when scrolling, it goes over it, reaching the top of the screen...- (a trick by making z: 1 seems to have solved the problem here...) :)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Seems to me like you need to enable cropping?

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ices_Eyes
        wrote on last edited by
        #3

        [quote author="Andre" date="1340716116"]Seems to me like you need to enable cropping?[/quote]

        Newbie question...: what you mean exactly? :P

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          My mistake, I should have set "clipping" instead of "cropping". Look up the clip property in the documentation for QML Item.

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Ices_Eyes
            wrote on last edited by
            #5

            So, you are suggesting to:

            • making a main file with a PageStackWindow
            • put the banner on top of the PageStackWindow
            • on every page used in the pageStackWindow, use the clip properties set to true

            ?

            If so, it does not work, but I'm pretty sure this is not what you mean... :P

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              The clipping is about making sure the items from your list view don't start to overlap with your other items. Nothing more. Sorry I was being too short.

              1 Reply Last reply
              0
              • I Offline
                I Offline
                Ices_Eyes
                wrote on last edited by
                #7

                [quote author="Andre" date="1340717853"]The clipping is about making sure the items from your list view don't start to overlap with your other items. Nothing more. Sorry I was being too short. [/quote]

                It's not your falt, it's just me being too much newbie on this... :P
                I will try this, let's see :P

                UPDATE: new thing learned, and it works! :P So the solution is to put the banner inside each page and then if needed clip the other contents :D Thanks!!! :D

                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