C++ (Qt)QVariant RandomListModel::data(const QModelIndex &index, int role) const { if (role != Qt::DisplayRole) return QVariant();...
SQLSELECT * FROM mytable WHERE KEY BETWEEN 0 AND 100 ORDER BY KEY ASC
C++ (Qt)else while (row > m_rows.lastIndex()) m_rows.append(fetchRow(m_rows.lastIndex()+1));
else while (row > m_rows.lastIndex()) m_rows.append(fetchRow(m_rows.lastIndex()+1));