当前位置:网站首页>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 :
边栏推荐
- IPv6 experiment
- 2022-06-25 网工进阶(十一)IS-IS-三大表(邻居表、路由表、链路状态数据库表)、LSP、CSNP、PSNP、LSP的同步过程
- How to build an efficient information warehouse
- Cross compile opencv with contrib
- PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?
- We have built an intelligent retail settlement platform
- [disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
- 2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)
- Chapter 1: King Shehan miscalculated
- kubernetes集群搭建efk日志收集平台
猜你喜欢

PR 2021 quick start tutorial, material import and management

原生表格-滚动-合并功能

第一章:求奇因数代数和,求同吗小数和s(d, n),简化同码小数和s(d, n),拓广同码小数和s(d, n)

Chapter 1: find the factorial n of n!

How to build an efficient information warehouse

Chapter 20: y= sin (x) /x, rambling coordinate system calculation, y= sin (x) /x with profile graphics, Olympic rings, ball rolling and bouncing, water display, rectangular optimization cutting, R que

OSPF - detailed explanation of stub area and full stub area

Octopus online ecological chain tour Atocha protocol received near grant worth $50000

第二章:求长方体数组,指定区间内的完全数,改进指定区间内的完全数

2022-06-30 网工进阶(十四)路由策略-匹配工具【ACL、IP-Prefix List】、策略工具【Filter-Policy】
随机推荐
[new year job hopping season] test the technical summary of interviewers' favorite questions (with video tutorials and interview questions)
第一章: 舍罕王失算
2022-06-28 advanced network engineering (XIII) IS-IS route filtering, route summary, authentication, factors affecting the establishment of Isis neighbor relations, other commands and characteristics
Chapter 1: drinking soft drinks, step tariff calculation, step tariff calculation function, personal income tax, solving square root inequality, simplifying solving square root inequality, solving dem
Day18 - basis of interface testing
FBI warning: some people use AI to disguise themselves as others for remote interview
BOC protected tryptophan zinc porphyrin (Zn · TAPP Trp BOC) / copper porphyrin (Cu · TAPP Trp BOC) / cobalt porphyrin (cobalt · TAPP Trp BOC) / iron porphyrin (Fe · TAPP Trp BOC) / Qiyue supply
Chapitre 1: le roi de shehan a mal calculé
UE source code analysis: uccharactermovementcomponent - rootmotion
第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
Chapter 1: simplify the same code decimal sum s (D, n)
第一章:拓广同码小数和s(d, n)
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval
P1891 crazy LCM (Euler function)
BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply
Comments on flowable source code (37) asynchronous job processor
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
[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]