当前位置:网站首页>Part 27 supplement (27) buttons of QML basic elements
Part 27 supplement (27) buttons of QML basic elements
2022-07-03 19:29:00 【Embedded workplace】
1、Button
The button trigger process is : When the button is clicked , Will trigger the signal clicked() The signal ;
Execution process : Then the response slot function onClicked;
Before using the button, you need to add :
import QtQuick.Controls 1.2example 1:
import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 1.2
Window
{
visible: true
width: 600
height: 400
Rectangle {
anchors.centerIn: parent
width: 300
height: 300
color: "red"
Button {
text: " sign out " // Specify the button text
anchors.centerIn: parent
onClicked: {
Qt.quit()
}
}
}
}Result display :
边栏推荐
- [disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
- CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
- 2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透
- Difference between surface go1 and surface GO2 (non professional comparison)
- P1891 crazy LCM (Euler function)
- Day11 ---- 我的页面, 用户信息获取修改与频道接口
- 2022-06-25 网工进阶(十一)IS-IS-三大表(邻居表、路由表、链路状态数据库表)、LSP、CSNP、PSNP、LSP的同步过程
- Today I am filled with emotion
- 论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
- Day18 - basis of interface testing
猜你喜欢

【LeetCode】【SQL】刷题笔记

2022.2.14 Li Kou - daily question - single element in an ordered array

第一章: 舍罕王失算

FBI warning: some people use AI to disguise themselves as others for remote interview

第二十章:y= sin(x)/x,漫步坐标系计算,y= sin(x)/x 带廓幅图形,奥运五环,小球滚动与弹跳,流水显示,矩形优化裁剪,r个皇后全控nxn棋盘

Chapter 1: simplify the same code decimal sum s (D, n)

Sentinel source code analysis part II - sentinel dashboard console startup and configuration
![[academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time](/img/06/5a37e2dca9711f8322b657581c3d75.png)
[academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time
![CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析](/img/70/6fd00146418e5d481e951d51428990.png)
CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析

第一章:求同吗小数和s(d, n)
随机推荐
Ego planner code parsing Bspline_ Optimizer section (1)
We have built an intelligent retail settlement platform
PR 2021 quick start tutorial, how to create a new sequence and set parameters?
Day10 -- forced login, token refresh and JWT disable
Streaming media server (16) -- figure out the difference between live broadcast and on-demand
PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?
Floating source code comment (38) parallel job processor
2022-06-30 网工进阶(十四)路由策略-匹配工具【ACL、IP-Prefix List】、策略工具【Filter-Policy】
Think of new ways
Foundation of ActiveMQ
BUUCTF
Zhang Fei hardware 90 day learning notes - personal record on day 5. Please see my personal profile / homepage for the complete record
Random numbers in a long range, is that right- Random number in long range, is this the way?
math_ Taylor formula
Merge K ascending linked lists
Sentinel source code analysis part I sentinel overview
Basic principle of LSM tree
Sentinel source code analysis part II - sentinel dashboard console startup and configuration
During MySQL installation, the download interface is empty, and the components to be downloaded are not displayed. MySQL installer 8.0.28.0 download interface is empty solution
Free year-end report summary template Welfare Collection