You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
551 B
25 lines
551 B
#include "mydevice.h"
|
|
#include "ui_mydevice.h"
|
|
#include "mydevice.h"
|
|
#include "ui_mydevice.h"
|
|
|
|
mydevice::mydevice(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::mydevice)
|
|
{
|
|
ui->setupUi(this);
|
|
floatingbutton= new FloatingButton (this);
|
|
// 将悬浮球的pressed()信号连接到槽函数onButtonPressed()上
|
|
connect(floatingbutton, &FloatingButton::pressed, this, &mydevice::onButtonPressed);
|
|
}
|
|
|
|
mydevice::~mydevice()
|
|
{
|
|
delete ui;
|
|
delete floatingbutton;
|
|
}
|
|
void mydevice::onButtonPressed()
|
|
{
|
|
this->close();
|
|
}
|