Results 1 to 3 of 3

Thread: populate tree upward

  1. #1
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Smile populate tree upward

    Hi,

    I am working with tree view with huge data. so I wanted to do lazy population with the help of fetchMore() & canFetchMore() but this is intended to load data downwards (incremental data loading /population). I have a requirement on other side, I wanted to load and show last few rows(end of the tree) in tree view and then when I scroll up I wanted to load data in upward direction & show it.

    Any suggestions from Qt experts how to implement this.
    Thanks :-)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,356
    Thanks
    3
    Thanked 5,010 Times in 4,789 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: populate tree upward

    Basically you can manually do the same thing as treeview already does for canFetchMore/fetchMore. Connect to the changing value of the view's scrollbar and when it reaches the beginning, request new data to be prepended to the model.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: populate tree upward

    That's what even I tough, But looking if some thing is there already.
    Any how thanks for the reply, I will try this way.
    Thanks :-)

Similar Threads

  1. Replies: 6
    Last Post: 28th July 2015, 18:54
  2. How QPushButton menu opens upward?
    By ahmetturan in forum Newbie
    Replies: 0
    Last Post: 10th December 2013, 13:05
  3. Adding a small tree to an existing tree in QTreeview.
    By salcin in forum Qt Programming
    Replies: 0
    Last Post: 25th September 2013, 17:27
  4. Populate QTableWidget
    By ruben.rodrigues in forum Qt Programming
    Replies: 2
    Last Post: 3rd May 2011, 14:21
  5. PyQt Populate a QTableWidget
    By n3wcr4zy in forum Newbie
    Replies: 0
    Last Post: 2nd March 2011, 08:20

Tags for this Thread

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.