Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Enable/disable toolbar actions by tabpage change
abibiano last edited by
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,
vsorokin last edited by
Just keep pointers to your Actions in MainWindow class and change Actions state on QTabWidget::currentChanged ( int index ) signal