Qt QAbstractTableModel C++ source

103 views
Skip to first unread message

Luigi Ferraris

unread,
Jul 24, 2015, 3:57:41 PM7/24/15
to qtcon...@googlegroups.com
Hi Pritpal,
do you know where is located the QAbstractTableModel.cpp (and .h) in the
Qt gitHub tree?

I have explored via web, but I'm not able to find it :-(

I want take a look.

TIA
Luigi Ferraris

Pritpal Bedi

unread,
Jul 24, 2015, 4:35:32 PM7/24/15
to QtContribs, luigfe...@gmail.com, luigfe...@gmail.com
Here is for QAbstractItemMode:


http://cep.xray.aps.anl.gov/software/qt4-x11-4.2.2-browser/df/d29/qabstractitemmodel_8cpp-source.html


But could not find for QAbstractTableModel.
Download the sources and grep for keywords.


Pritpal Bedi
a student of software analysis & concepts 

Luigi Ferraris

unread,
Jul 25, 2015, 9:08:55 AM7/25/15
to Pritpal Bedi, QtContribs
Il 24/07/2015 22.35, Pritpal Bedi ha scritto:
But could not find for QAbstractTableModel.
Hi Pritpal,
many thanks for your quickly answer. Today, with a lot of patience, I tried to surf the on the web.
Googling, I found qt4-x11.sourcearchive.com; then reading the Qt tree structure, on page related to QAbstractItemModel I found this info:
00310 class Q_CORE_EXPORT QAbstractTableModel : public QAbstractItemModel. Wow!

So, I have open this folder https://github.com/qtproject/qtbasetree/dev/src/corelib/itemmodels
then looking into https://github.com/qtproject/qtbasetree/dev/src/corelib/itemmodels/qabstractitemmodel.cpp
I found the QAbstractTableModel source; the same, can be done with qabstractitemmodel.h
and... QAbstractListModel

I hope, it can be useful for everyone

Regards
Luigi Ferraris
Reply all
Reply to author
Forward
0 new messages