mainmenubackground.cpp 400 B

12345678910111213141516171819
  1. #include "mainmenubackground.h"
  2. #include "ui_mainmenubackground.h"
  3. #include <QMovie>
  4. MainMenuBackground::MainMenuBackground(QWidget *parent) :
  5. Scene(parent),
  6. ui(new Ui::MainMenuBackground)
  7. {
  8. ui->setupUi(this);
  9. movie = new QMovie(":/assets/main_menu/tree.gif");
  10. ui->tree_label->setMovie(movie);
  11. movie->start();
  12. }
  13. MainMenuBackground::~MainMenuBackground()
  14. {
  15. delete ui;
  16. }