V-Play 文档翻译 Page
V-Play 文档翻译 Page
翻译:qyvlik
应用的一个页面。
VPlayApps 1.0
Inherits: MouseArea
Inherited By: ListPage
属性
Item:NavigationStackbackNavigationEnabled:boolbackgroundColor:colorcanNavigateBack:boolleftBarItem:ItemnavigationBarHidden:boolnavigationBarTranslucency:realnavigationStack:NavigationStackrightBarItem:ItemtabBarHidden:booltitle:stringtitleItem:Item
具体描写叙述
The Page type provides a container for the contents of a single page within an application.
应用的一个页面提供一个内容。
属性文档
Item:NavigationStackread-only
The nearest parent item in the QML hierarchy that is a NavigationStack item. (read-only)
在 QML 层次中最亲近的父级项 NavigationStack。
If the current item or one of its parent items is a child of a NavigationStack item, this property contains the owning NavigationStack item. This property is null if the Page is not embedded inside a NavigationStack item.
假设当前项的直接父级项是 NavigationStack 的孩子,则这个属性会自己主动包括 NavigationStack。假设这个属性为 null。则 Page 不在 NavigationStack 中。
backNavigationEnabled:bool
Set this property to false to disable the back navigation within a page in a NavigationStack if previous pages exist on the stack.
设置为 false,则不予显示回退按钮。
Disabling the back navigation hides the “back” button within a NavigationBar, deactivates the iOS back swipe gesture and also disables the hardware back button on Android and Windows Phone.
隐藏位于 NavigationBar 上的回退按钮,意味着 iOS 上滑动回退以及安卓和 WP 上硬件返回键无效。
The default value is false, if the current page is the first one inside a NavigationStack, true otherwise.
假设当前页面为 NavigationStack 的第一个页面,默认值为 false。
backgroundColor:color
The background color of the Page which is displayed if no other items are placed within the page.
Page 的背景色,假设没有被其它项所替代,就会显示此颜色。
The default value is defined in the Theme::backgroundColor property and can be overridden.
默认值是 Theme::backgroundColor,可又一次定义。
canNavigateBack:boolread-only
Readonly property holds whether it is possible to actually navigate back within the current stack. The property is true if a previous page exists on the stack, otherwise false.
当前页面能否够回退到上一级,仅仅读。
This QML property was introduced in V-Play 2.7.0.
leftBarItem:Item
A custom navigation bar item displayed on the left of the navigation bar if the item is on top of a NavigationStack as a direct child of it.
假设 Page 是 NavigationStack 的直接孩子。则显示自己定义导航栏左边控件。
By default this item displays a back navigation item if the current NavigationStack can navigate back. If setting the item to an explicit NavigationBarItem it replaces the back button with the custom item.
假设当前 NavigationStack 能够回退至上一页,则默认显示一个回退按钮。假设直接使用 NavigationBarItem 来替代的话。会显示定制的控件。
navigationBarHidden:bool
A boolean value indicating whether the navigation bar should be hidden for that specific Page if the item is presented within a NavigationStack item.
You can set this property to false to implement a custom styled full-screen page within a NavigationStack without the default navigation bar behavior (make sure to implement a custom back navigation action in that case).
By default this property is false, meaning that the navigation bar is visible for that Page.
大体意思就是是否隐藏导航栏。
navigationBarTranslucency:real
Set this value to make the navigation bar translucent for that specific Page within a NavigationStack.
The allowed value range is 0.0 to 1.0. The default value is 0.0, meaning that the navigation bar is not translucent (fully opaque).
注意这里的是系统的状态栏做文章。具体就是一个应用以全屏方式显示。可是状态栏没有被应用覆盖,而且自身保持一定的透明度,以显示下层的应用画面。这里是调整系统状态栏的透明度的。默认值为 0.0。不透明。
大体就是沉浸式了。
If using a translucent navigation bar, the page content will move beneath the navigation bar and you should add that extra spacing for your pages on your own (you can get the current height from ThemeNavigationBar::height).
假设使用了沉浸式导航栏(系统状态栏沉浸,与应用融为一体),须要使用 ThemeNavigationBar::height 修复 Page 的高度。
navigationStack:NavigationStackread-only
The nearest parent item in the QML hierarchy that is a NavigationStack item. (read-only)
在 QML 层次中最亲近的父级项 NavigationStack。
If the current item or one of its parent items is a child of a NavigationStack item, this property contains the owning NavigationStack item. This property is null if the Page is not embedded inside a NavigationStack item.
假设当前项的直接父级项是 NavigationStack 的孩子,则这个属性会自己主动包括 NavigationStack。
假设这个属性为 null。则 Page 不在 NavigationStack 中。
rightBarItem:Item
A custom navigation bar item displayed on the right of the navigation bar if the item is on top of a NavigationStack as a direct child of it.
假设 Page 是 NavigationStack 的直接孩子,则显示自己定义导航栏右边控件。
By default this item is empty.
默觉得空。
tabBarHidden:bool
A boolean value indicating whether a tab bar should be hidden for that specific Page if the item is presented within a Navigation item showing tabs.
By default this property is false, meaning that the tab bar is visible for that Page.
是否显示选项板控制控件。默认不显示。
title:string
A localized, human-readable string that represents the the content of this page.
The title is used as string in a navigation bar if the Page item is a child of a NavigationStack.
显示本页面的标题,假设当前 Page 是 NavigationStack 的直接孩子。就显示在导航栏上。
titleItem:Item
A custom navigation bar item displayed at the title slot of the navigation bar if the item is on top of a NavigationStack as a direct child of it.
By default, the title of the page is displayed.
This QML property was introduced in V-Play 2.6.2.
用以显示自己定义标题,比如带有图片的标题等。
V-Play 文档翻译 Page的更多相关文章
- Hawk 1.2 快速入门2 (大众点评18万美食数据)
本文将讲解通过本软件,获取大众点评的所有美食数据,可选择任一城市,也可以很方便地修改成获取其他生活门类信息的爬虫. 本文将省略原理,一步步地介绍如何在20分钟内完成爬虫的设计,基本不需要编程,还能自动 ...
- 【三石jQuery视频教程】01.图片循环展示
视频地址:http://v.qq.com/page/e/5/t/e0149n5he5t.html 大家好,欢迎来到[三石jQuery视频教程],我是您的老朋友 - 三生石上. 今天,我们要通过基本的H ...
- Hawk: 20分钟无编程抓取大众点评17万数据
1. 主角出场:Hawk介绍 Hawk是沙漠之鹰开发的一款数据抓取和清洗工具,目前已经在Github开源.详细介绍可参考:http://www.cnblogs.com/buptzym/p/545419 ...
- 【三石jQuery视频教程】03.创建垂直时间表(Timeline)
视频地址:http://v.qq.com/page/g/i/o/g0150rvi6io.html 大家好,欢迎来到[三石jQuery视频教程],我是您的老朋友 - 三生石上. 今天,我们要通过基本的H ...
- 【三石jQuery视频教程】02.创建 FontAwesome 复选框和单选框
视频地址:http://v.qq.com/page/m/8/c/m0150izlt8c.html 大家好,欢迎来到[三石jQuery视频教程],我是您的老朋友 - 三生石上. 今天,我们要通过基本的H ...
- 【三石jQuery视频教程】01.图片循环展示_再次重发
之前的文章,由于在博文的底部放有微信公众号的缘故,被管理员判定为: 您好,您的这篇博文内容本身没什么问题,但是,在博文底部存在推广信息内容.... 你们也没告知到底是哪条触犯了博客园的规矩,我就把底部 ...
- [小哥Allegro72讲速成视频]
http://v.qq.com/vplus/df932a993679cf80a0b6c87bb849e22c 第01讲 Allegro常用组件介绍 视频链接:http://v.qq.com/boke/ ...
- php 解析 视频 信息 封面 标题 图片 支持 优酷, 土豆 酷6 56 新浪 qq播客 乐视 乐视
原文地址:http://www.lianyue.org/2013/2497/ <?php /** * 解析 视频信息 类 * * 支持 优酷, 土豆 酷6 56 新浪 qq播客 乐视 乐视 ** ...
- 【转载】Linux系统与性能监控
原文地址:http://kerrigan.sinaapp.com/post-7.html Linux System and Performance Monitoring http://www.hous ...
随机推荐
- 【LeetCode】Valid Parentheses(有效的括号)
这道题是LeetCode里的第20道题. 题目要求: 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效. 有效字符串需满足: 左括号必须用相同类型的右括号闭 ...
- Linux 查看端口占用并杀掉进程
1. 查看端口号占用情况: netstat -apn|grep 11305 tcp 0 0 10.65.42.27:80 172.22.142.20: ...
- BZOJ 1069 [SCOI2007]最大土地面积 ——计算几何
枚举对角线,然后旋转卡壳即可. #include <map> #include <cmath> #include <queue> #include <cstd ...
- BZOJ 3240 [Noi2013]矩阵游戏 ——费马小定理 快速幂
发现是一个快速幂,然而过不去. 怎么办呢? 1.十进制快速幂,可以用来练习卡时. 2.费马小定理,如果需要乘方的地方,可以先%(p-1)再计算,其他地方需要%p,所以需要保存两个数. 然后就是分类讨论 ...
- HDU 3001 Travelling ——状压DP
[题目分析] 赤裸裸的状压DP. 每个点可以经过两次,问经过所有点的最短路径. 然后写了一发四进制(真是好写) 然后就MLE了. 懒得写hash了. 改成三进制,顺利A掉,时间垫底. [代码] #in ...
- XPosed框架_简单的应用
0. Xposed框架简介 关于Xposed框架相信大家应该不陌生了,他是Android中Hook技术的一个著名的框架,而Xposed框架是免费的而且还是开源的,本文主要介绍如何通过这个框架来进行系统 ...
- 【霍夫曼树】poj 1339 poker card game (数组排序+辅助队列的方法,预处理O(nlogn),构造霍夫曼树O(n))
poj.org/problem?id=1339 #include<iostream> #include<cstdio> #include<string> #incl ...
- 洛谷 [T21776] 子序列
题目描述 你有一个长度为 \(n\) 的数列 \(\{a_n\}\) ,这个数列由 \(0,1\) 组成,进行 \(m\) 个的操作: \(1\ l\ r\) :把数列区间$ [l,r]$ 内的所有数 ...
- 【BZOJ2002】弹飞绵羊(LCT)
题意:给定一棵树,要求维护以下操作: 1.删除连接(x,y)的边 2.将(x,y)之间连边 3.询问某点子树大小 对于100%的数据n<=200000,m<=100000 思路:第一道有加 ...
- float类型的使用
将身高字段设置为float类型,保留一位小数: ALTER TABLE `user` CHANGE `height` `height` FLOAT(4,1) UNSIGNED NOT NULL DEF ...