Enable/disable toolbar actions by tabpage change
-
I have a tabbed interface with a mainwindow and a tabwidget. I have also a maintoolbar.
I want to disable/enable some buttons on my toolbar depending of the current active tabpage. For example, I want to enable the Save button only on tabpages that has pending changes.
How can I do it?
A lot of thanks,
Alex B.
-
Just keep pointers to your Actions in MainWindow class and change Actions state on QTabWidget::currentChanged ( int index ) signal