A menu widget provides a list of items which are associated with some contents. At any time one item is selected from the list.
A WMenu works in conjunction with a WStackedWidget, which manages the contents.
The panel at the left is implemented using a WMenu
.
You can create items with submenus by using the WSubMenuItem
rather than the default WMenuItem
.
A menu has full support for bookmarks and the back button, by rendering its items using WAnchor and making use of internal paths.
By default, the menu does not provide any styling. It can be rendered
using HTML <ul>
and <li>
elements. It
should be styled using CSS. The look and behaviour of menu
items can be customized by just reimplementing the styling. For example,
the WTabWidget is merely a
specialized menu. By default the nav
class from the
Bootstrap theme is applied.