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. QML ListView scrolling and full screen
Forum Updated to NodeBB v4.3 + New Features

QML ListView scrolling and full screen

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 2 Posters 2.9k 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.
  • C Offline
    C Offline
    cochleas.devel
    wrote on last edited by
    #1

    Hi all,

    I am trying to create an iPad app with the following layout:

    The main screen of the app will be a vertical listview containing many items e.g. 8,
    but only 4 of them will be visible. The rest can be seen with scrolling the list.
    Each listview item is created from a common qml file, containing images, shapes, etc.
    When the user clicks inside the area of each item, the item must rotate and
    cover the full screen, while the listview to become inactive at the same time.

    Any idea how to implement this? I am trying to do it with state changes but
    I am confused...

    Any help?
    !https://www.dropbox.com/s/xzngvagdhgen2tu/layout.jpg?dl=0()!

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      May be you can try something with visibility flag. During the user clicks your change height/width one item and set visibility of ListView to false. State change may overkill for this requirement.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cochleas.devel
        wrote on last edited by
        #3

        Thanks for your response.

        However, if I hide the ListView, the maximized item is also hidden. Any idea?

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          May be you can show separate window itself or remove from ListView and show only the selected window.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cochleas.devel
            wrote on last edited by
            #5

            do you know any link to any related tutorial/example?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cochleas.devel
              wrote on last edited by
              #6

              My problem is that the content of each listview item is updated dynamically, so how am i going to show it in a different window?

              1 Reply Last reply
              0
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on last edited by
                #7

                I have not see any tutorial. I can prepare something and post the same for you.

                Dheerendra
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cochleas.devel
                  wrote on last edited by
                  #8

                  I have found something that may help:

                  http://qt-project.org/doc/qt-4.8/declarative-modelviews-package.html

                  actually I must display the same list model in different views...

                  yes I would appreciate preparing something!

                  Thanks in advance!

                  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