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. How to enablement switchover of listView and GridView
Forum Updated to NodeBB v4.3 + New Features

How to enablement switchover of listView and GridView

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 3.3k 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.
  • E Offline
    E Offline
    Emily
    wrote on last edited by
    #1

    Hello everyone
    listView and GridView use a the same listModel in a program UI , I want to enablement switchover except the exchange of 'Z' property
    whether there are any other method????

    any answer is grateful
    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kunal_the_one
      wrote on last edited by
      #2

      I think you want switch between listview and gridview, you can try setting opacity to 0 and 1 as you need

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Emily
        wrote on last edited by
        #3

        but that will make it run slowly(gridview display many images and pictures)

        whether can dynamic create listView or GridView?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kunal_the_one
          wrote on last edited by
          #4

          Then you can try using Loader element to create ListView or GridView dynamically and destroy it.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            Emily
            wrote on last edited by
            #5

            How about use IavaScript's function to dynamic creat one of the view

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kunal_the_one
              wrote on last edited by
              #6

              I think that's possible, I have seen such code in this forum...

              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