Obsolete Members for PieMenu

The following members of QML type PieMenu 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

特性

特性文档编制

activationMode : enumeration

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This property determines the method for selecting items in the menu.

  • An activationMode of ActivationMode.ActivateOnPress means that menu items will only be selected when a mouse press event occurs over them.
  • An activationMode of ActivationMode.ActivateOnRelease means that menu items will only be selected when a mouse release event occurs over them. This means that the user must keep the mouse button down after opening the menu and release the mouse over the item they wish to select.
  • An activationMode of ActivationMode.ActivateOnClick means that menu items will only be selected when the user clicks once over them.

警告: Changing the activationMode while the menu is visible will result in undefined behavior.

使用 triggerMode 代替。