Comments on: How to create a custom model for a QListView in Qt 4 http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/ Just another WordPress weblog Tue, 22 Jul 2014 10:00:12 +0000 hourly 1 https://wordpress.org/?v=4.7.9 By: Gustavo http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/comment-page-1/#comment-24482 Mon, 05 Nov 2012 17:20:11 +0000 http://pogopixels.com/blog/?p=144#comment-24482 Thank you!

]]>
By: Dexter http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/comment-page-1/#comment-19946 Fri, 18 May 2012 12:00:21 +0000 http://pogopixels.com/blog/?p=144#comment-19946 Hi
I get this error when I compile & run

request for member ‘size’ in ‘((const EmployeeListModel*)this)->EmployeeListModel::employees_’, which is of non-class type ‘const int’

]]>
By: Dexter http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/comment-page-1/#comment-19942 Fri, 18 May 2012 09:01:09 +0000 http://pogopixels.com/blog/?p=144#comment-19942 How do I display multiple columns with different data types
Ex Employee First Name (String)
Employee LastName (String)
Employeee age (integer)
Employee wages (double)

]]>
By: George http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/comment-page-1/#comment-16125 Sun, 18 Dec 2011 16:59:06 +0000 http://pogopixels.com/blog/?p=144#comment-16125 Actually, any idea why I’m getting an error when I run this code?

CODE:
vector members = g.get_members();
MemberListModel *model = new MemberListModel(members);
ui->lstMembers->setModel(model);

ERROR:
…/editgroup.cpp:24: error: cannot allocate an object of abstract type ‘MemberListModel’

]]>
By: George http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/comment-page-1/#comment-16122 Sun, 18 Dec 2011 16:22:52 +0000 http://pogopixels.com/blog/?p=144#comment-16122 Many thanks, this is very helpful. Saved me a huge headache.

]]>
By: Asbjørn http://pogopixels.com/blog/how-to-create-a-custom-model-for-a-qlistview-in-qt/comment-page-1/#comment-14064 Sun, 28 Aug 2011 04:46:25 +0000 http://pogopixels.com/blog/?p=144#comment-14064 Thanks, I too was struggling with a custom model, but for a QCompletioner. Your post put me on the right track 🙂

]]>