ich habe eine QToolbar, der ich mehrere Actions gegeben habe:
Code: Alles auswählen
QAction* seeThis = new QAction(QIcon(":/img/pic.png"),"Ansehen",this);
QAction* openThat = new QAction(QIcon(":/img/pic1.png"),"Oeffnen1",this);
QAction* openThis = new QAction(QIcon(":/img/pic2.png"),"Oeffnen2",this);
ui->toolBar->addAction(seeThis);
ui->toolBar->addAction(openThat);
ui->toolBar->addAction(openThis);
Code: Alles auswählen
ui->toolBar->actionAt(0,0)->setEnabled(false);
danke für die Hilfe