draw instrument

This commit is contained in:
2020-01-02 19:25:12 +08:00
parent 52614aa68f
commit c9739025a1
7 changed files with 325 additions and 75 deletions
+5 -5
View File
@@ -20,12 +20,12 @@ MainWindow::MainWindow(QWidget *parent)
nav = new QNavigationWidget(this);
copk = new Cockpit(this);
copk = new Cockpit(this);
copk->setGeometry(this->width() - copk->width(),0,copk->width(),copk->height());
copk->setGeometry(this->width() - copk->width(),0,700,this->height());
nav->setGeometry(0,0,50,this->height());
nav->setGeometry(0,0,50,this->height());
nav->setRowHeight(50);
@@ -71,7 +71,7 @@ MainWindow::MainWindow(QWidget *parent)
map->SetMapType(mapcontrol::Helper::MapTypeFromString("BingSatellite"));
map->setGeometry(nav->width(),
0,
this->width() - nav->width(),
this->width() - nav->width() - copk->width(),
this->height());
@@ -94,7 +94,7 @@ void MainWindow::resizeEvent(QResizeEvent *e)
map->setGeometry(nav->width(),
0,
this->width() - nav->width(),
this->width() - nav->width() - copk->width(),
this->height());
update();