Qt Quick ToolTip
2016-07-27 15:27
375 查看
函数Open显示tip,delay属性:延迟多久才显示,timeout显示的持续时间
import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 import QtQuick.Controls.Material 2.0 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") ToolTip{ id:t text: "按钮被点击咯" delay: 500 timeout: 1000 x:parent.width/2 - width/2 y:parent.height/2 - height/2 } Button{ id:btn text:"按钮" highlighted: true Material.accent: Material.Green Material.theme: Material.Dark onClicked: { t.open() } } }
相关文章推荐
- UIVisualEffectView
- 查找QUERY的几张表
- MUI 拨打电话
- UILabel 首行缩进两个字符
- Error:Execution failed for task...finished with non-zero exit value 2
- SVN使用报错 Synchronize operation failed. RA layer request failed svn: REPORT request on
- Java中连结MySQL启用预编译的先决条件是useServerPstmts=true.
- UIView release, message send to deallocated instance
- Java中break、continue与return的区别
- 对uiview实现部分圆角
- Bluetooth-->蓝牙开发之状态判断
- UITableViewCell显示动画
- UIView非常用方法及属性详解
- hdu 1005 Number Sequence
- Rescue
- Android酷炫实用的开源框架(UI)
- MiniGUI.cfg 文件详解
- String、StringBuffer和StringBuilder
- Android Studio里面的Build.gradle的详细配置说明
- building-librtmp-for-ios