fralx / LimeReport

Report generator for Qt Framework
http://limereport.ru/
Other
401 stars 152 forks source link

When executing the designReport() function, if there are more controls in my template, it will crash. #447

Open Arrow-qaq opened 9 months ago

Arrow-qaq commented 9 months ago

"The stack error shows an array out of bounds."

QList<CompleterItem > CompleterModel::findItems(const QString &text, Qt::MatchFlags flags, int column) const { QModelIndexList indexes = match(index(0, column, QModelIndex()), Qt::DisplayRole, text, -1, flags); QList<CompleterItem> items; const int numIndexes = indexes.size(); items.reserve(numIndexes); for (int i = 0; i < numIndexes; ++i) items.append(itemFromIndex(indexes.at(i))); return items; }

fralx commented 9 months ago

Hi, could you send me an example