O'Reilly logo

PySide GUI Application Development by Venkateshwaran Loganathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tool bar

A tool bar is a panel of icons associated with actions that are available for easy access of menus. In PySide, the tool bars are implemented in the PySide.QtGui.QToolBar class. The toolbar is added to the main window with addToolBar() function. The tool bar is initially positioned at the top of the window below the menu bar. This can be adjusted with the QToolBar.setAllowedAreas() function. The tool bar can be set movable or immovable by setting it with the QToolBar.setMovable() function. The style and size of the icons can be defined by the underlying platform, which could also be controlled. When it is resized in a way too small that can hold all the icons, an extension button will appear which on click expands to all items.

Toolbar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required