I have a menu having 5 Actions on MainWindow. There are 5 widgets which I am using with QStackedLayout. Each action is associated with one widget.
Now if I setCurrentIndex of my stackLayout to 2 then I want to disable 1 Action from menu and I want to remove 1 action from menu. How can I do this? But if user switches back to previous index then I want to add actions again. This can happen again & again as user is free to switch between index of stackLayout.