Hallo,
wenn ich folgenden Code benutzte, kommt der folgende Error.
| 1 | QLabel* _posLabels[7];
 | 
| 2 | 
 | 
| 3 | AnzeigeBreit::AnzeigeBreit(QWidget *parent) :
 | 
| 4 |     QMainWindow(parent),
 | 
| 5 |     ui(new Ui::AnzeigeBreit)
 | 
| 6 | {
 | 
| 7 |     ui->setupUi(this);
 | 
| 8 | 
 | 
| 9 |     _posLabels = {ui->pos0Label, ui->pos1Label, ui->pos2Label, ui->pos3Label, ui->pos4Label, ui->pos5Label, ui->pos6Label};
 | 
QLabel istnatürlich includiert.
| 1 | anzeigebreit.cpp:42:16: error: assigning to an array from an initializer list
 | 
| 2 |      _posLabels = {ui->pos0Label, ui->pos1Label, ui->pos2Label, ui->pos3Label, ui->pos4Label, ui->pos5Label, ui->pos6Label};
 | 
Weiß jemand, woran das liegt?