This commit is contained in:
hm
2019-12-27 17:26:08 +08:00
parent c56960fedc
commit a550735eb9
9 changed files with 190 additions and 21 deletions
+20 -6
View File
@@ -13,6 +13,10 @@
#include "Cockpit.h"
#include "mavlinknode.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
@@ -21,7 +25,7 @@ MainWindow::MainWindow(QWidget *parent)
QNavigationWidget *nav = new QNavigationWidget(this);
Cockpit *copk = new Cockpit(this);
copk = new Cockpit(this);
copk->setGeometry(this->width() - copk->width(),0,copk->width(),copk->height());
@@ -56,11 +60,7 @@ MainWindow::MainWindow(QWidget *parent)
//this->layout()->addWidget(connectpush);
//this->layout()->addWidget(disconnectpush);
//this->setLayout(layout);
//this->setLayout(layout);
}
MainWindow::~MainWindow()
@@ -68,6 +68,20 @@ MainWindow::~MainWindow()
}
void MainWindow::resizeEvent(QResizeEvent *e)
{
qDebug() << e;
copk->setGeometry(this->width() - copk->width(),0,copk->width(),copk->height());
update();
}
void MainWindow::dlink_triggered()
{
//if(dlink->statesPort())