Hi,

I have few QActions added to a QMenu:
ui->menuView->addAction( pAction1 );
ui->menuView->addAction( pAction2 );
ui->menuView->addAction( pAction3 );

My problem is that I can't disable a particular QAction:
pAction2->setDiasbled( true ); // doesn't do anything

In the documentation it is written: "An action will be disabled when all widgets to which it is added (with QWidget::addAction()) are disabled or not visible."
So why it doesn't work makes sense, but it is not what I want.

How can I do it?

Thanks.