hello,

i have a problem with a menu i created. i want to set a shortcut and disable it until a picture is loaded. the button doesn't work while setEnabled is false, but the shortcut works even if the button is disabled. how can i disable the shortcut too?

Code:

/* zoomInAction entry*/
zoomInAct = new QAction(tr("Zoom &In"), this);
connect(zoomInAct, SIGNAL(triggered()), this, SLOT(zoomIn()));
zoomInAct->setShortcut(tr("Ctrl++"));
zoomInAct->setEnabled(false);
viewMenu->addAction(zoomInAct);