Results 1 to 1 of 1

Thread: How to detect a root cause of canfetchmore() ?

  1. #1
    Join Date
    Oct 2014
    Location
    Czech Republic
    Posts
    1
    Qt products
    Platforms
    Windows

    Default How to detect a root cause of canfetchmore() ?

    Hi, I've been using QTreeView for my "ininitely" long custom tree model. Everything is OK except that canFetchMore() is called repeatedly even if I won't even move the scrollbar. Am trying to implement a pagination which helps me to keep a constant number of items using canFetchMore() approach.

    Also I have a custom QTreeView ItemDelegate which paints a content of the QTreeView. The delegate has overriden sizeHint() method. Otherwise we are talking about an ordinary Model->View case.

    Can I find out somehow why the canFetchMore()/fetchMore() method is called and where does it come from??


    Thanks, David

    [PyQt4, Python 3.4]
    Last edited by sedlacek.david; 18th October 2014 at 21:47.

Similar Threads

  1. QFileSystemModel root
    By Alundra in forum Qt Programming
    Replies: 3
    Last Post: 9th June 2014, 15:06
  2. QDir::root ()
    By RenanBS in forum Qt Programming
    Replies: 10
    Last Post: 6th June 2014, 19:00
  3. debugging as root
    By weaver4 in forum Qt Programming
    Replies: 0
    Last Post: 13th February 2012, 22:10
  4. how to run QT application with root permission
    By noa l in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2010, 14:32
  5. Problem to run a Qt Gui application as root
    By holmfred in forum Newbie
    Replies: 3
    Last Post: 23rd October 2010, 15:07

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.