I need to force act to be fileSaveAction; but don't work; I put fileSaveas action inside popupMenu (mouse menu); so when I click on filesaveas on popupmenu SLOT starts but the sender() must be fileSaveAs...thanks
mainform::fileSaveAs()
if (act != this->fileSaveAction && act != this->fileSaveAsAction)
act = fileSaveAction;
if ((fileSaveAsAction == act)) doSomething //here problem
mainform::fileSaveAs()
QAction* act = (QAction*) sender();
if (act != this->fileSaveAction && act != this->fileSaveAsAction)
act = fileSaveAction;
if ((fileSaveAsAction == act)) doSomething //here problem
To copy to clipboard, switch view to plain text mode
Bookmarks