Action toolbars
Create your own customisable tool bars with the ActionToolBar component
Last updated
Create your own customisable tool bars with the ActionToolBar component
Last updated
While Kirigami pages allow you to easily place a set of actions in the page header, there are times when you might prefer to have something more flexible.
Kirigami provides the component . It displays a list of objects and will display as many of them as possible, providing an overflow menu for the ones that don't fit. The ActionToolBar is dynamic and will move actions in and out of the overflow menu depending on the size available to it.
The layout and location of your are really up to you, though for the sake of user-friendliness it is usually a good idea to stick to UI conventions and put your toolbar near the top or bottom of your page and to have it spread width wise.
Like most other action-holding components, has an property. We can assign an array of components to this property.
By default, actions in the will be left aligned. This might not be desirable in all situations. Thankfully we can change this with the property. We can set this property to a range of values, but the three most relevant ones are Qt.AlignLeft
, Qt.AlignCenter
, and Qt.AlignRight
(which deal with ).