当前位置:网站首页>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 .
边栏推荐
- Embedded systems are inherently flawed. Compared with the Internet, there are so many holes that it is simply difficult to walk away from
- Swing transformer details-2
- LeetCode 面试题 17.20. 连续中值(大顶堆+小顶堆)
- 03 fastjason solves circular references
- Runtime. getRuntime(). GC () and runtime getRuntime(). The difference between runfinalization()
- 51 MCU tmod and timer configuration
- Timer and counter of 51 single chip microcomputer
- 要选择那种语言为单片机编写程序呢
- Getting started with JMX, MBean, mxbean, mbeanserver
- Notes on C language learning of migrant workers majoring in electronic information engineering
猜你喜欢

Development of intelligent charging pile (I): overview of the overall design of the system

Quelle langue choisir pour programmer un micro - ordinateur à puce unique

Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program

QT is a method of batch modifying the style of a certain type of control after naming the control

我想各位朋友都应该知道学习的基本规律就是:从易到难

Assignment to '*' form incompatible pointer type 'linkstack' {aka '*'} problem solving

内存数据库究竟是如何发挥内存优势的?

在三线城市、在县城,很难毕业就拿到10K

应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机

I think all friends should know that the basic law of learning is: from easy to difficult
随机推荐
Project cost management__ Cost management technology__ Article 8 performance review
使用密钥对的形式连接阿里云服务器
JS foundation - prototype prototype chain and macro task / micro task / event mechanism
应用最广泛的8位单片机当然也是初学者们最容易上手学习的单片机
STM32 general timer output PWM control steering gear
el-table X轴方向(横向)滚动条默认滑到右边
After clicking the Save button, you can only click it once
My notes on the development of intelligent charging pile (III): overview of the overall design of the system software
2020-08-23
Of course, the most widely used 8-bit single chip microcomputer is also the single chip microcomputer that beginners are most easy to learn
QT qcombobox QSS style settings
Oracle数据库 SQL语句执行计划、语句跟踪与优化实例
Serial communication based on 51 single chip microcomputer
QT self drawing button with bubbles
Stm32f407 key interrupt
RESNET code details
Application of 51 single chip microcomputer timer
干单片机这一行的时候根本没想过这么多,只想着先挣钱养活自己
Toolbutton property settings
There is no shortcut to learning and development, and there is almost no situation that you can learn faster by leading the way