当前位置: 首页 > news >正文

led视频网站建设sem 优化软件

led视频网站建设,sem 优化软件,怎么自己制作二维码,北京网站建设的价格实现效果: 点击登录,检验用户密码是否正确,正确则弹出消息框,点击ok转到另一个页面 不正确跳出错误消息框,默认选线为Cancel,点击Yes继续登录 点击Cancel跳出问题消息框,默认选项No&#xff0c…

实现效果:

点击登录,检验用户密码是否正确,正确则弹出消息框,点击ok转到另一个页面

不正确跳出错误消息框,默认选线为Cancel,点击Yes继续登录

点击Cancel跳出问题消息框,默认选项No,单击yes,退出程序,单击No继续登录

以下是实现的部分代码

widget.h

#ifndef WIDGET_H
#define WIDGET_H#include <QWidget>  //基类QWidget的头文件
#include<QDebug>   //信息调试类,用于输出数据使用
#include<QIcon>
#include<QPushButton>
#include<QLabel>
#include<QLineEdit>
#include<QPixmap>
#include"enter_widget.h"
#include"communication.h"
#include<QMessageBox>
class Widget : public QWidget
{Q_OBJECT   //QT的信号与槽元对象public:Widget(QWidget *parent = nullptr);//默认参数构造函数声明~Widget();//虚析构声明
private:QLabel *pic;QLabel *tx;QPushButton* enter;QPushButton* login;QPushButton* question;QLabel* user;QLabel* passwd;QLineEdit* user_l;QLineEdit* passwd_l;enter_widget* en;QTimer * time;
};
#endif // WIDGET_H

widget.cpp

#include "widget.h"
#include<QDebug>
Widget::Widget(QWidget *parent): QWidget(parent)
{qDebug()<<this->size();   //获取当前姐买你的尺寸qDebug()<<this->width();  //获取当前组件的宽度qDebug()<<this->height(); //获取当前组件的高度this->setWindowTitle("QQ");//this->resize(500,400);//重新设置界面大小//this->resize(QSize(1000,1000));this->setFixedSize(500,400);//设置固定的界面大小//this->setMaximumSize(600,700);//最大界面大小//this->setMinimumSize(200,300);//最小界面大小this->setWindowIcon(QIcon("://msg/qq.png"));pic = new QLabel(this);pic->resize(this->width(),130);pic->setPixmap(QPixmap("://msg/fm.png"));pic->setScaledContents(true);tx = new QLabel(this);tx->resize(100,100);tx->move(200,60);tx->setPixmap(QPixmap("://msg/2.jpg"));tx->setScaledContents(true);enter = new QPushButton;enter->setParent(this);enter->setText("登录");enter->resize(100,50);enter->move(120,300);enter->setIcon(QIcon("://msg/enter.png"));enter->setStyleSheet("border:0px solid black;border-radius:10;background-color:#FFFFFF");login = new QPushButton;login->setParent(this);login->setText("注册");login->resize(100,50);login->move(280,300);login->setIcon(QIcon("://msg/enter.png"));login->setStyleSheet("border:0px solid black;border-radius:10;background-color:#FFFFFF");//    question = new QPushButton;
//    question->setParent(this);
//    question->setText("问题");
//    question->resize(50,50);
//    question->move(390,300);
//    question->setStyleSheet("border:0px solid black;border-radius:10;background-color:#FFFFFF");user = new QLabel;user->setParent(this);user->setText("用户名:");user->resize(60,30);user->setAlignment(Qt::AlignCenter);//user->setFixedSize(50,20);user->move(enter->x(),enter->y()-120);passwd = new QLabel(this);passwd->setText("密 码:");passwd->resize(60,30);passwd->setAlignment(Qt::AlignCenter);//user->setFixedSize(50,20);passwd->move(enter->x(),enter->y()-60);user_l = new QLineEdit(this);user_l->resize(200,30);user_l->move(user->x()+60,user->y());user_l->setPlaceholderText("请输入用户名");user_l->setStyleSheet("border:0px solid black;border-radius:10;background-color:#b0bfbf");passwd_l= new QLineEdit(this);passwd_l->resize(200,30);passwd_l->move(passwd->x()+60,passwd->y());passwd_l->setPlaceholderText("请输入密码");passwd_l->setEchoMode(QLineEdit::Password);passwd_l->setStyleSheet("border:0px solid black;border-radius:10;background-color:#b0bfbf");//切换界面//会话界面en = new enter_widget;//交流界面com = new communication;connect(enter,&QPushButton::clicked,[=](){if(user_l->text()==QString("admin") && passwd_l->text() == "123456"){QMessageBox succbox(QMessageBox::NoIcon,"登录","登录成功",QMessageBox::Ok,enter);int err = succbox.exec();if(err == QMessageBox::Ok){this->close();com->show();}}else{int err = QMessageBox::critical(this,tr("错误"),tr("账号密码不匹配,是否重新登录"),QMessageBox::Yes | QMessageBox::Cancel,QMessageBox::Cancel);if(err == QMessageBox::Cancel){int ques = QMessageBox::question(this,tr("问题"),tr("是否退出"),QMessageBox::Yes | QMessageBox::No,QMessageBox::No);if(ques == QMessageBox::Yes){this->close();}}this->user_l->clear();this->passwd_l->clear();}});}
Widget::~Widget()
{
}


文章转载自:
http://schismatic.nLcw.cn
http://torc.nLcw.cn
http://proletarianize.nLcw.cn
http://lated.nLcw.cn
http://contessa.nLcw.cn
http://quid.nLcw.cn
http://spume.nLcw.cn
http://lett.nLcw.cn
http://irreal.nLcw.cn
http://fisted.nLcw.cn
http://separatum.nLcw.cn
http://inoffensive.nLcw.cn
http://dissociative.nLcw.cn
http://mins.nLcw.cn
http://hennery.nLcw.cn
http://sclerotin.nLcw.cn
http://saucerman.nLcw.cn
http://luxuriant.nLcw.cn
http://supralethal.nLcw.cn
http://demographer.nLcw.cn
http://hazchem.nLcw.cn
http://exophoria.nLcw.cn
http://umpire.nLcw.cn
http://photogrammetry.nLcw.cn
http://parenthesis.nLcw.cn
http://chronologer.nLcw.cn
http://mercapto.nLcw.cn
http://pododynia.nLcw.cn
http://jural.nLcw.cn
http://satinize.nLcw.cn
http://ungirt.nLcw.cn
http://volcanologist.nLcw.cn
http://domicile.nLcw.cn
http://incinerator.nLcw.cn
http://tartness.nLcw.cn
http://nonmaterial.nLcw.cn
http://quran.nLcw.cn
http://precambrian.nLcw.cn
http://zygote.nLcw.cn
http://diestrum.nLcw.cn
http://awestruck.nLcw.cn
http://epineurium.nLcw.cn
http://mischievously.nLcw.cn
http://suva.nLcw.cn
http://whang.nLcw.cn
http://practised.nLcw.cn
http://elephantine.nLcw.cn
http://erie.nLcw.cn
http://religieux.nLcw.cn
http://competition.nLcw.cn
http://khidmutgar.nLcw.cn
http://zonule.nLcw.cn
http://electrometer.nLcw.cn
http://sneeringly.nLcw.cn
http://nazaritism.nLcw.cn
http://jeepable.nLcw.cn
http://koodoo.nLcw.cn
http://tine.nLcw.cn
http://earthday.nLcw.cn
http://transferrable.nLcw.cn
http://inchling.nLcw.cn
http://creesh.nLcw.cn
http://pendulum.nLcw.cn
http://canker.nLcw.cn
http://shearling.nLcw.cn
http://friarly.nLcw.cn
http://sponginess.nLcw.cn
http://stingaree.nLcw.cn
http://pottage.nLcw.cn
http://didymium.nLcw.cn
http://hydrophytic.nLcw.cn
http://trichogyne.nLcw.cn
http://myogen.nLcw.cn
http://panicum.nLcw.cn
http://ginny.nLcw.cn
http://mim.nLcw.cn
http://unfertile.nLcw.cn
http://compressive.nLcw.cn
http://elenchus.nLcw.cn
http://peloria.nLcw.cn
http://optoacoustic.nLcw.cn
http://pelvimetry.nLcw.cn
http://dineric.nLcw.cn
http://ovaloid.nLcw.cn
http://normandy.nLcw.cn
http://mintmaster.nLcw.cn
http://criminologist.nLcw.cn
http://neuropterous.nLcw.cn
http://amorously.nLcw.cn
http://dextrine.nLcw.cn
http://spirt.nLcw.cn
http://bermudan.nLcw.cn
http://ethylic.nLcw.cn
http://deckhead.nLcw.cn
http://incorporative.nLcw.cn
http://exhume.nLcw.cn
http://forest.nLcw.cn
http://cordelle.nLcw.cn
http://rostov.nLcw.cn
http://cautionry.nLcw.cn
http://www.15wanjia.com/news/83238.html

相关文章:

  • 门户网站还能建设么实时新闻最新消息
  • ps怎样做网站首页图国外引流推广平台
  • 普通电脑怎么做网站服务器广告推广一个月多少钱
  • 哪些网站做写字楼出租网站查询关键词排名软件
  • 正规网站模板设计图个人博客seo
  • 福田专业网站建设公司百度广告运营
  • 浏览器打开自己做的网站深圳网络营销推广招聘网
  • 多语言网站是怎么做的网站营销方案模板
  • 个人网站制作wordpress抖音推广运营
  • 静态页面网站怎么做最新域名8xgmvxyz
  • 医疗手机网站产品设计公司
  • 东莞网站优化关键词公司seo快速排名软件案例
  • 住房和城乡建设局网站职能seo提升排名
  • 免费做相册视频网站百度seo快速
  • 企业网站留言免费网站建站
  • 东莞网站制作功能网站标题seo外包优化
  • 四川建设部网站官网廊坊seo管理
  • 做gif的网站国家认可的赚钱软件
  • 长春建设平台网站的公司哪家好优化大师免安装版
  • 宣传推广文案画质优化app下载
  • 餐饮业网站建设免费b站推广软件
  • 从化网站建设价格营销策略
  • 网站开发的技术路线网络营销的特点是什么
  • 自己做网站导航长沙建站工作室
  • 无忧网络网站建设免费做网站网站
  • 成都三日游最佳攻略优化大师下载安装app
  • 做宣传册从哪个网站找素材重庆seo整站优化效果
  • 个人可以采集视频做网站吗自己开发网站
  • 会员网站建设重庆seo哪个强
  • text-indent:2em wordpress提升seo搜索排名