I am trying to build the equivalent of an ArcMap Toolbar in PyQGIS. My toolbar has interactive functionality. For example, in the toolbar below, I cannot access any edit functions until I have selected a certain raster id. Each button has a different purpose and I still need to be able to draw polygons on the map canvas. I need a similar functionality in my QGIS version.
I also need to be able to override some standard QGIS functionality such as some forms when saving layer edits ( I understand that I can do this using slots and signals)
Currently I have come across 2 different methods of trying to replicate this in QGIS:
Create a plugin for each button using the QGIS Plugin Builder and Qt Designer and then group my plugins into a toolbar using a Custom Toolbar Plugin. Although this is what I need aesthetically, it doesn't allow interactivity between my plugins(???)
Use PyQt to build a toolbar from scratch. Although I think this will give me the functionality I need, it seems to be far more convoluted and as soon as I click off the toolbar it disappears- I need it to be present at all times.
Can anyone advise on what the best method to approach this problem is? I.e. what is the best method to get full interactivity between the different buttons/plugins and yet group them together as a toolbar?
I am using QGIS 3.4 and PyQt5