Results 1 to 16 of 16

Thread: GridView without reflow

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    27
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default GridView without reflow

    Hi guys,

    I'm facing a problem implementing a map viewer with QML and a C++ model (Qt 5.2). The model is ok.
    For the view I'm using GridView and I found that it reflows contents as you resize the app window. I would like to cancel this behaviour and being able to just scroll vertically and horizontally in case the map is too big to fit in the window, but I don't know how. I tried to use a Grid with a Repeater, but the Repeater seems to place items randomly and, even if I could manage to use it correctly, it instantiates all image tiles when loaded (with a zoom level of 19 in Open Street Map there are more than 500.000 x 500.000 image tiles).

    Do you have any suggestions?

    Thanks

    EDIT: I just understood that GridView is a ListView but with reflow. Any other idea for a bidimensional view? Already tried TableView without success
    Last edited by shaolin; 11th May 2014 at 18:39.

Similar Threads

  1. Replies: 7
    Last Post: 9th September 2013, 08:31
  2. QML GridView load model from C++ SQLite
    By olegdim in forum Qt Quick
    Replies: 0
    Last Post: 21st August 2012, 19:01
  3. QML gridView crahes on QDeclerativeView close
    By mots_g in forum Qt Programming
    Replies: 0
    Last Post: 4th June 2011, 12:28
  4. Usage of QTableView as gridview
    By ada10 in forum Newbie
    Replies: 7
    Last Post: 9th August 2010, 23:13
  5. Replies: 1
    Last Post: 14th October 2007, 10:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.