Skip to content

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

Open

Description

@Arrow-qaq

"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;
}

Activity

  1. fralx commented on Sep 13, 2023

    @fralx
    Owner

    Hi, could you send me an example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions