3

I am making an application that is using tab bar with the "More" button. I would like to Override the swipe function and instead of OnClick on the "More" button, the help panel to pop up on swipe (from left to right).

enter image description here

The picture is showing the tabs and the fourth tab button is the "More" button.

Here is my main.qml file.

TabbedPane {
    showTabsOnActionBar: false
    Tab {
        title: "Home"
        Page {
            id: page1
            actions: [
                ActionItem {
                    id: new
                    title: "New"
                },
                ActionItem {
                    id: delete
                    title: "Delete"
                },
            ]

        }

    }
}
4

2 回答 2

0

从 TabbedPane 的文档中(您在其中看到了这些图形),您可以“通过设置属性 sidebarState 来改变侧边栏的外观”。因此,可以使用 GestureHandler 来检测滑动并将 sidebarState 设置为 VisibleFull。

于 2014-07-18T13:59:48.720 回答
0

这些是操作,而不是选项卡。“更多”按钮是操作溢出菜单。您可以收听此菜单的状态。onActionMenuVisualStateChanged

于 2013-04-12T05:48:21.263 回答