You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1000 B
43 lines
1000 B
6 months ago
|
/******************************************************************
|
||
|
Copyright © Deng Zhimao Co., Ltd. 1990-2021. All rights reserved.
|
||
|
* @projectName 03_appmainview
|
||
|
* @brief widget.cpp
|
||
|
* @author Deng Zhimao
|
||
|
* @email 1252699831@qq.com
|
||
|
* @net www.openedv.com
|
||
|
* @date 2021-06-09
|
||
|
*******************************************************************/
|
||
|
#include "widget.h"
|
||
|
#include <QPushButton>
|
||
|
#include <QDebug>
|
||
|
|
||
|
|
||
|
AppMainView::AppMainView(QWidget *parent)
|
||
|
{
|
||
|
this->setParent(parent);
|
||
|
this->setGeometry(0, 0, 800, 480);
|
||
|
this->setMinimumSize(800, 480);
|
||
|
bgWidget = new QWidget(this);
|
||
|
// bgWidget->setStyleSheet("");
|
||
|
|
||
|
mySlidePage = new SlidePage(this);
|
||
|
mySlidePage->resize(this->size());
|
||
|
|
||
|
alarm = new Alarm(this);
|
||
|
mySlidePage->addPage(alarm);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
AppMainView::~AppMainView()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
void AppMainView::resizeEvent(QResizeEvent *event)
|
||
|
{
|
||
|
Q_UNUSED(event)
|
||
|
mySlidePage->resize(this->size());
|
||
|
bgWidget->resize(this->size());
|
||
|
}
|