#include "widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
{
this->setWindowTitle("画江湖");
this->setWindowIcon(QIcon("C:\\Users\\Flamingo\\Pictures\\newPicture\\blr.jpg"));
this->resize(600,100);
this->setFixedSize(600,1000);
this->setStyleSheet("background-color:darkgrey");
this->setWindowFlag(Qt::FramelessWindowHint);
/*****************标签*****************/
QLabel *lab1 = new QLabel(this);
lab1->resize(600,382);
QMovie *mv = new QMovie("C:\\Users\\Flamingo\\Pictures\\newPicture\\shaxia");
lab1->setMovie(mv);
mv->start();
lab1->setScaledContents(true);
QLabel *lab2 = new QLabel(this);
lab2->resize(50,50);
lab2->move(20,20);
lab2->setPixmap(QPixmap("C:\\Users\\Flamingo\\Pictures\\newPicture\\blr.jpg"));
lab2->setStyleSheet("border-radius:25px");
lab2->setScaledContents(true);
QLabel *lab3 = new QLabel(this);
lab3->resize(100,100);
lab3->move(250,350);
lab3->setPixmap(QPixmap("C:\\Users\\Flamingo\\Pictures\\newPicture\\blr.jpg"));
lab3->setStyleSheet("border-radius:50px");
lab3->setScaledContents(true);
QLabel *lab4 = new QLabel(this);
lab4->resize(50,50);
lab4->move(100,550);
lab4->setPixmap(QPixmap("C:\\Users\\Flamingo\\Downloads\\pictrue\\pictrue\\userName.jpg"));
lab4->setScaledContents(true);
QLabel *lab5 = new QLabel(this);
lab5->resize(50,50);
lab5->move(100,650);
lab5->setPixmap(QPixmap("C:\\Users\\Flamingo\\Downloads\\pictrue\\pictrue\\passwd.jpg"));
lab5->setScaledContents(true);
/***************************************/
QLineEdit *edit1 = new QLineEdit(this);
edit1->resize(300,50);
edit1->move(180,550);
edit1->setStyleSheet("background-color:white");
QLineEdit *edit2 = new QLineEdit(this);
edit2->resize(300,50);
edit2->move(180,650);
edit2->setStyleSheet("background-color:white");
/****************************************/
QPushButton *pbt1 = new QPushButton(this);
pbt1->resize(300,50);
pbt1->move(150,800);
pbt1->setText("登录");
pbt1->setStyleSheet("background-color:orange");
QPushButton *pbt2 = new QPushButton(this);
pbt2->resize(50,50);
pbt2->move(550,0);
pbt2->setText("×");
pbt2->setStyleSheet("background-color:orange");
QPushButton *pbt3 = new QPushButton(this);
pbt3->resize(50,50);
pbt3->move(500,0);
pbt3->setText("-");
pbt3->setStyleSheet("background-color:orange");
}
Widget::~Widget()
{
}
Day11.13
最新推荐文章于 2024-11-09 13:08:09 发布