QTday1

#include "mywidget.h"

MyWidget::MyWidget(QWidget *parent)
    : QWidget(parent)
{
    //设置窗口标题
    this->setWindowTitle("MyWindow");

    //设置窗口图标
    this->setWindowIcon(QIcon("C:\\Users\\Administrator\\Desktop\\pictrue"));

    //设置背景颜色
    this->setStyleSheet("background-color:rbg(255,255,255)");

    //重新设置窗口大小
    this->resize(540,410);
}

MyWidget::~MyWidget()
{
}

你可能感兴趣的:(java,前端,服务器)