问题描述:

I have an array of lineEdits:

QLineEdit *cells[81];

But when I try and set the text in them I get a segfault:

cells[i]->setText(QString::number(i));

How can I access these elements?

网友答案:

Fixed it. I set the private array and then redeclared it in local scope. Somehow that didn't make a warning...

相关阅读:
Top