Results 1 to 3 of 3

Thread: implementation of QabstractItemModel problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    139
    Thanks
    13
    Thanked 59 Times in 52 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: implementation of QabstractItemModel problem

    That error means that you've haven't implemented a pure virtual function. Pure virtual functions are identified by having "= 0" in the prototype (as seen in the documentation). In this case the missing function is columnCount. If your model is a simple string list you may be interested in QStringListModel. You may also want to use Model Test with your custom model.

  2. The following user says thank you to numbat for this useful post:

    mikelantonio (7th August 2009)

  3. #2
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: implementation of QabstractItemModel problem

    thanks, it works.
    I need to implement, other than columnCount, either parent and index methods.

Similar Threads

  1. PyQt QTimer problem { FIXED }
    By WinchellChung in forum Newbie
    Replies: 0
    Last Post: 1st March 2008, 16:50
  2. problem with opengl, zooming, drawpixels, and origin
    By ntp in forum General Programming
    Replies: 0
    Last Post: 22nd February 2008, 21:48
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Qt is a trademark of The Qt Company.