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. A pager with nine thumbnails per page

A pager with nine thumbnails per page

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 3.4k 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.
  • U Offline
    U Offline
    unidob
    wrote on last edited by
    #1

    Hi all

    I'm doing a app to Symbian^1 and Symbian^3 so I can't use Qt-components. I want to show a lot of images from a xml. The view is a pager with nine thumbnails at time. I'm using this http://www.developer.nokia.com/Community/Wiki/QML_paging_using_ListView for the pager. The point is that the model (XmlListModel) gives the elements one at time to the delegate, and I don't know how I can change this. Maybe I should change my mind to do something completely different. I don't know.

    Any help?

    Thanks in advance.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      You can still do it with ListView but you'll need a delegate that displays 9 thumbnails.

      Alternatively you could do it with a GridView set to have 3 rows and scroll horizontally or to have 3 columns and scroll vertically.

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • U Offline
        U Offline
        unidob
        wrote on last edited by
        #3

        [quote author="ZapB" date="1318859153"]You can still do it with ListView but you'll need a delegate that displays 9 thumbnails.
        [/quote]

        First of all, thank you by your answer. I want to do that, I have a delegate with nine images but I don't know how do I get nine urls from my model. My model is a simple XmlListModel with a XmlRole which is the url to a image, so the delegate can access only to an image.

        The other solution is not good for me, I need a pager.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #4

          Hmmm, you need to get a suitable XML source to feed to your pager item. You could do this by either using a dedicated XML source file or by using a proxy model to present your base XML data in a new way but that would involve some C++. Is that OK for you?

          Why can't you make a pager out of a GridView? Just a case of scrolling by 3 columns or rows each time. That way you don't have to mess around with proxy models etc.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • U Offline
            U Offline
            unidob
            wrote on last edited by
            #5

            [quote author="ZapB" date="1318861230"]Why can't you make a pager out of a GridView? Just a case of scrolling by 3 columns or rows each time. That way you don't have to mess around with proxy models etc.[/quote]

            It was to impossible to answer before , sorry by that. Probably you are right and I can use simply a GridView. However I need two things I couldn't do by now. How do I scroll by 3 columns each time and how do I know in which "page" is showing in this moment?

            Thank you.

            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