Obsolete Members for Menu
The following members of QML type Menu are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Methods
- Action actionAt(index)
- void addAction(action)
- void addItem(item)
- void addMenu(menu)
- void dismiss()
- void insertAction(index, Action action)
- void insertItem(index, Item item)
- void insertMenu(index, Menu menu)
- Item itemAt(index)
- Menu menuAt(index)
- void moveItem(from, int to)
- void popup(parent, real x, real y, MenuItem item = null)
- void popup(x, real y, MenuItem item = null)
- void popup(parent, point pos, MenuItem item = null)
- void popup(pos, MenuItem item = null)
- void popup(parent, MenuItem item = null)
- void popup(MenuItem item = null)
- void removeAction(action)
- void removeItem(item)
- void removeMenu(menu)
- Action takeAction(index)
- MenuItem takeItem(index)
- Menu takeMenu(index)
Method Documentation
This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use Menu::removeItem(Item) or Menu::takeItem(int) instead.