OriginalWnd.cpp 824 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "OriginalWnd.h"
  2. #include "ui_OriginalWnd.h"
  3. OriginalWnd::OriginalWnd(QWidget *parent)
  4. : QMainWindow(parent)
  5. , ui(new Ui::OriginalWnd)
  6. {
  7. ui->setupUi(this);
  8. initForm();
  9. }
  10. OriginalWnd::~OriginalWnd()
  11. {
  12. delete ui;
  13. }
  14. void OriginalWnd::initForm()
  15. {
  16. ui->toolButton->setIcon(QIcon(":/images/light/stop.png"));
  17. ui->toolButton_2->setIcon(QIcon(":/images/light/start.png"));
  18. ui->toolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
  19. ui->toolButton_2->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
  20. ui->label_6->setPixmap(QPixmap(":/images/light/user.png").scaled(20, 20, Qt::KeepAspectRatio));
  21. }
  22. void OriginalWnd::on_pushButton_19_clicked()
  23. {
  24. baseDisplay_wgt = new BaseDisplay_wgt(ui->widget_2);
  25. baseDisplay_wgt->move(10,70);
  26. baseDisplay_wgt->show();
  27. }