mainwindow.cpp 612 B

12345678910111213141516171819202122232425262728293031
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include "AirportWidget.h"
  4. #include "QxOrm.h"
  5. #include <QDebug>
  6. #include <QHBoxLayout>
  7. static void getBytes(char *src, int srcLength, int length)
  8. {
  9. }
  10. MainWindow::MainWindow(QWidget *parent)
  11. : QMainWindow(parent)
  12. , ui(new Ui::MainWindow)
  13. {
  14. ui->setupUi(this);
  15. AirportWidget *widget = new AirportWidget(this);
  16. QHBoxLayout *hLayout = new QHBoxLayout(this);
  17. hLayout->addWidget(widget);
  18. ui->centralwidget->setLayout(hLayout);
  19. double lon;
  20. getBytes((char*)&lon,sizeof(lon),3);
  21. }
  22. MainWindow::~MainWindow()
  23. {
  24. delete ui;
  25. }