#include "tools_Index1.h" #include "ui_tools_Index1.h" Tools_Index1::Tools_Index1(QWidget *parent) : QWidget(parent), ui(new Ui::Tools_Index1) { ui->setupUi(this); //load qss QFile file(":/qss/Setting.qss"); file.open(QFile::ReadOnly); QTextStream filetext(&file); QString stylesheet = filetext.readAll(); this->setStyleSheet(stylesheet); file.close(); //scope = new Scope(this); //scope->setGeometry(ui->frame->geometry()); //scope->show(); } Tools_Index1::~Tools_Index1() { delete ui; } void Tools_Index1::resizeEvent(QResizeEvent *event) { Q_UNUSED(event) //scope->setGeometry(ui->frame->geometry()); update(); }