Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    How to enablement switchover of listView and GridView

    QML and Qt Quick
    2
    6
    2588
    Loading More Posts
    • 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
      Emily last edited by

      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 Reply Quote 0
      • K
        kunal_the_one last edited by

        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 Reply Quote 0
        • E
          Emily last edited by

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

          whether can dynamic create listView or GridView?

          1 Reply Last reply Reply Quote 0
          • K
            kunal_the_one last edited by

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

            1 Reply Last reply Reply Quote 0
            • E
              Emily last edited by

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

              1 Reply Last reply Reply Quote 0
              • K
                kunal_the_one last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post