当前位置:网站首页>QT setting suspension button
QT setting suspension button
2022-07-03 10:03:00 【Master Hao】
// If the size of the middle map chassis changes
if(target==ui->widget_6&&event->type()==QEvent::Resize)
{
auto resizeEvent=static_cast<QResizeEvent*>(event);
// Set its map sub control to the same size
ui->widget_5->resize(resizeEvent->size());
}
// If the middle map chassis moves
if(target==ui->widget_6&&event->type()==QEvent::Move)
{
// auto moveEvent=static_cast<QMoveEvent*>(event);
// The map sub control moves to the upper left corner :
ui->widget_5->move(0,0);
// Move the alarm sub control to a position , Upper right corner
ui->alarmWidget->setFixedSize(100,100);
auto newPosition=QPoint(ui->widget_6->rect().width()-100,0);
ui->alarmWidget->move(newPosition);
// Lift to the top
ui->alarmWidget->raise();
}
Be careful , Coordinates of the control , Is the coordinate relative to its parent control .
边栏推荐
- You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
- 对于新入行的同学,如果你完全没有接触单片机,建议51单片机入门
- 手机都算是单片机的一种,只不过它用的硬件不是51的芯片
- Project cost management__ Topic of comprehensive calculation
- Exception handling of arm
- 使用密钥对的形式连接阿里云服务器
- My notes on intelligent charging pile development (II): overview of system hardware circuit design
- LeetCode - 460 LFU 缓存(设计 - 哈希表+双向链表 哈希表+平衡二叉树(TreeSet))*
- 01 business structure of imitation station B project
- An executable binary file contains more than machine instructions
猜你喜欢
Yocto Technology Sharing Phase 4: Custom add package support
Fundamentals of Electronic Technology (III)_ Chapter 2 principle of amplification circuit__ Crystal triode and field effect triode
Stm32f407 key interrupt
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)
CEF download, compile project
Installation and removal of MySQL under Windows
Comment la base de données mémoire joue - t - elle l'avantage de la mémoire?
QT is a method of batch modifying the style of a certain type of control after naming the control
随机推荐
2.Elment Ui 日期选择器 格式化问题
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
Runtime. getRuntime(). GC () and runtime getRuntime(). The difference between runfinalization()
03 fastjason solves circular references
使用sed替换文件夹下文件
Oracle数据库 SQL语句执行计划、语句跟踪与优化实例
LeetCode - 673. 最长递增子序列的个数
SCM career development: those who can continue to do it have become great people. If they can't endure it, they will resign or change their careers
STM32 general timer output PWM control steering gear
01 business structure of imitation station B project
In third tier cities and counties, it is difficult to get 10K after graduation
Project cost management__ Plan value_ Earned value_ Relationship among actual cost and Countermeasures
Getting started with JMX, MBean, mxbean, mbeanserver
openEuler kernel 技術分享 - 第1期 - kdump 基本原理、使用及案例介紹
2021-01-03
自動裝箱與拆箱了解嗎?原理是什麼?
Stm32f407 key interrupt
The new series of MCU also continues the two advantages of STM32 product family: low voltage and energy saving
01仿B站项目业务架构
内存数据库究竟是如何发挥内存优势的?