Results 1 to 3 of 3

Thread: Error when populating lazily QListView

  1. #1
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    1
    Qt products
    Platforms
    Unix/X11

    Default Error when populating lazily QListView

    I'm using a custom model class in a QListView.
    My model class implements also canFetchMore and fetchMore, so that it should load lazily the data.
    But it seems like it is not working properly because every 2-3 or 4 fetchMore I get this error:
    Qt Code:
    1. StdErr: QTreeView::rowsInserted internal representation of the model has been corrupted, resetting.
    To copy to clipboard, switch view to plain text mode 

    Reading that error seems like the model sometimes has to load again all the previous data due to some fact that i don't know...
    anyone know a way to avoid this error?

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Error when populating lazily QListView

    Your model is buggy. maybe http://labs.trolltech.com/page/Proje...view/Modeltest helps you finding those.

    HTH

  3. #3
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    1
    Qt products
    Platforms
    Unix/X11

    Default Re: Error when populating lazily QListView

    Ok I'll try it.

    Edit:
    I'm working with Python not with C++ so it is useless.
    In fact I don't know almost nothing of C++ and looks like Qt doesn't work with it on my pc(it cannot find the headers not even if I put the complete path to them...)
    Last edited by Bakuriu; 29th October 2009 at 12:01.

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.