lqt
lqt copied to clipboard
QAbstractItemModel:createIndex() method not implemented
QModelIndex QAbstractItemModel::createIndex ( int row, int column, void * ptr = 0 ) const [protected] Creates a model index for the given row and column with the internal pointer ptr.
QModelIndex QAbstractItemModel::createIndex ( int row, int column, quint32 id ) const [protected] Creates a model index for the given row and column with the internal identifier, id.
Comment by Michal:
It is always beneficial to consult the "ignores_qtgui.csv" file in the build directory. It lists all function which were not bound by lqt, and the reason for that. A quick "grep createIndex ignores_qtgui.csv" gives this:
QAbstractItemModel::createIndex;unkown argument type;void*
This means that lqt does not know how to translate "void_" to a Lua type. If you know a sensible way to do that (maybe using lightuserdata?), you can update generator/types.lua and add a definition for void_ type.