lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Št, 2010-04-29 at 15:09 +0200, noel frankinet wrote: 
> Michal Kottman a écrit :
> 
> Very interesting, can you implement the QModel part in lua ?

If you mean these classes:

$ lua -l qtcore -l qtgui -e 'for k in pairs(_G) do if
k:lower():match("model") then print(k) end end'

QSortFilterProxyModel
QModelIndex
QAbstractProxyModel
QAbstractItemModel
QDirModel
QStandardItemModel
QAbstractTableModel
QFileSystemModel
QPersistentModelIndex
QStringListModel
QAbstractListModel
QItemSelectionModel
QProxyModel

Then they are already there. I am not sure if all of the methods in
these classes are implemented (the automatic binding ignores some
methods due to arguments of unbound types, unregistered template classes
etc.).

If you send me a simple example in C++, that would demonstrate the
required functionality, I can look into it.