You can disable right clicking on the toolbar to prevent users from hiding it:
# disable context menu on toolbar to prevent users from hiding toolbar
toolbar.setContextMenuPolicy(Qt.PreventContextMenu)
You can disable right clicking on the toolbar to prevent users from hiding it:
# disable context menu on toolbar to prevent users from hiding toolbar
toolbar.setContextMenuPolicy(Qt.PreventContextMenu)