IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

MenuBarItem QML Type

Presents a drop-down menu within a MenuBar.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

MenuBarItem QML Type

  • Import Statement: import QtQuick.Controls

  • Inherits: AbstractButton

  • Group: MenuBarItem is part of qtquickcontrols-menus

Detailed Description

MenuBarItem presents a Menu within a MenuBar. The respective drop-down menu is shown when a MenuBarItem is triggered via keyboard, mouse, or touch.

Image non disponible

MenuBarItem is used as a default delegate type for MenuBar. Notice that it is not necessary to declare MenuBarItem instances by hand when using MenuBar. It is sufficient to declare Menu instances as children of the MenuBar and the respective items are created automatically.

See Also

Property Documentation

 

highlighted : bool

This property holds whether the menu bar item is highlighted by the user.

A menu bar item can be highlighted by mouse hover or keyboard navigation.

The default value is false.

menu : Menu

[read-only] menuBar : Menu

Signal Documentation

 

void triggered()

This signal is emitted when the menu bar item is triggered by the user.

The corresponding handler is onTriggered.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+