当前位置:网站首页>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 .
边栏推荐
- The new series of MCU also continues the two advantages of STM32 product family: low voltage and energy saving
- I didn't think so much when I was in the field of single chip microcomputer. I just wanted to earn money to support myself first
- Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from
- LeetCode - 460 LFU 缓存(设计 - 哈希表+双向链表 哈希表+平衡二叉树(TreeSet))*
- RESNET code details
- Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program
- Mobile phones are a kind of MCU, but the hardware it uses is not 51 chip
- 当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
- 内存数据库究竟是如何发挥内存优势的?
- Idea remote breakpoint debugging jar package project
猜你喜欢
El table X-axis direction (horizontal) scroll bar slides to the right by default
ADS simulation design of class AB RF power amplifier
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
The new series of MCU also continues the two advantages of STM32 product family: low voltage and energy saving
编程思想比任何都重要,不是比谁多会用几个函数而是比程序的理解
一个可执行的二进制文件包含的不仅仅是机器指令
MySQL root user needs sudo login
You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
內存數據庫究竟是如何發揮內存優勢的?
For new students, if you have no contact with single-chip microcomputer, it is recommended to get started with 51 single-chip microcomputer
随机推荐
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)
Application of 51 single chip microcomputer timer
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
Open Euler Kernel Technology Sharing - Issue 1 - kdump Basic Principles, use and Case Introduction
Google browser plug-in recommendation
Blue Bridge Cup for migrant workers majoring in electronic information engineering
03 FastJson 解决循环引用
Swing transformer details-2
Uniapp realizes global sharing of wechat applet and custom sharing button style
要选择那种语言为单片机编写程序呢
2. Elment UI date selector formatting problem
Happy Dragon Boat Festival—— Zongzi written by canvas~~~~~
MySQL的简单使用(增删改查)
Timer and counter of 51 single chip microcomputer
Gpiof6, 7, 8 configuration
There is no shortcut to learning and development, and there is almost no situation that you can learn faster by leading the way
Project cost management__ Cost management technology__ Article 8 performance review
当你需要使用STM32某些功能,而51实现不了时, 那32自然不需要学
2020-08-23
单片机职业发展:能做下去的都成牛人了,熬不动就辞职或者改行了