QMenu * addMenu(const QIcon &icon, const QString &title) 将带有标题的新 QMenu 添加到菜单。此菜单拥有新菜单的所有权。返回添加的新菜单。 10、QAction * addSection(const QString &text) QAction * addSection(const QIcon &icon, const QString &text) 创建一个带有 QAction::isSeparator() 返...
IMenuButton::AddButton 方法使用户能够将按钮添加到特定视图的 MMC 菜单栏。 IMenuButton::SetButton IMenuButton::SetButton 方法使用户能够在菜单栏中设置已更改的按钮的文本属性。 IMenuButton::SetButtonState IMenuButton::SetButtonState 方法使用户能够更改菜单按钮的状态。 要求 展开表 要求值 最低受支持...
iconStr2, content: "菜单选项", endIcon: $r("app.media.arrow_right_filled") }) } }bindMenu属性绑定组件 Button('click for Menu') .bindMenu(this.MyMenu)创建支持右键或长按的菜单 通过bindContextMenu接口进行菜单的自定义及菜单弹出的触发方式:右键或长按。使用bindContextMenu弹出...
4. Set menu with button, which will openContextMenuDialogFragment. override fun onCreateOptionsMenu(menu: Menu?): Boolean { menuInflater.inflate(R.menu.menu_main, menu) return true } override fun onOptionsItemSelected(item: MenuItem?): Boolean { item?.let { when (it.itemId) { R.id.con...
button chart divider image image-animator input label marquee menu option picker picker-view piece progress qrcode rating richtext search select slider span switch text textarea toolbar toolbar-item toggle web xcomponent 媒体组件 video 画布组...
ComboBoxButtonMouseDownSeparatorBrushKey ComboBoxButtonMouseDownSeparatorColorKey ComboBoxButtonMouseOverBackgroundBrushKey ComboBoxButtonMouseOverBackgroundColorKey ComboBoxButtonMouseOverSeparatorBrushKey ComboBoxButtonMouseOverSeparatorColorKey ComboBoxDisabledBackgroundBrushKey ComboBoxDisabledBackgroun...
ErrorIconAlignment ErrorProvider FeatureSupport FileDialog FileDialogCustomPlace FileDialogCustomPlacesCollection FixedPanel FlatButtonAppearance FlatStyle FlowDirection FlowLayoutPanel FlowLayoutSettings FolderBrowserDialog FontDialog 表單 Form.ControlCollection FormBorderStyle FormClosedEventArgs FormClosedEventHandler FormClo...
ErrorIconAlignment ErrorProvider FeatureSupport FileDialog FileDialogCustomPlace FileDialogCustomPlacesCollection FixedPanel FlatButtonAppearance FlatStyle FlowDirection FlowLayoutPanel FlowLayoutSettings FolderBrowserDialog FontDialog Form Form.ControlCollection FormBorderStyle FormClosedEventArgs FormClosedEventHandler FormClo...
ErrorIconAlignment ErrorProvider FeatureSupport FileDialog FileDialogCustomPlace FileDialogCustomPlacesCollection FixedPanel FlatButtonAppearance FlatStyle FlowDirection FlowLayoutPanel FlowLayoutSettings FolderBrowserDialog FontDialog Form Form.ControlCollection FormBorderStyle FormClosedEventArgs FormClosedEventHandler FormClo...
ErrorIconAlignment ErrorProvider FeatureSupport FileDialog FileDialogCustomPlace FileDialogCustomPlacesCollection FixedPanel FlatButtonAppearance FlatStyle FlowDirection FlowLayoutPanel FlowLayoutSettings FolderBrowserDialog FontDialog Form Form.ControlCollection FormBorderStyle FormClosedEventArgs FormClosedEventHandler FormClo...