├── Login
├── blue.png
├── exit.png
├── girl1.png
├── images.qrc
├── main.cpp
├── signup.h
├── mainwindow.h
├── Login.pro
├── signup.cpp
├── mainwindow.cpp
├── signup.ui
├── mainwindow.ui
└── Login.pro.user
└── PasswordLock
├── back.png
├── bird.webp
├── blue.png
├── cloud.png
├── exit.png
├── girl1.png
├── girl2.png
├── lock.png
├── chahua.png
├── singup.png
├── unlock.png
├── windy.webp
├── main.cpp
├── dbform.cpp
├── dbform.h
├── image.qrc
├── formdb.h
├── signup.h
├── mysqlquerymodel.h
├── client.h
├── function.h
├── mainwindow.h
├── signup.cpp
├── PasswordLock.pro
├── mysqlquerymodel.cpp
├── dbform.ui
├── formdb.ui
├── client.cpp
├── formdb.cpp
├── mainwindow.cpp
├── function.cpp
├── function.ui
├── client.ui
├── mainwindow.ui
├── signup.ui
├── PasswordLock.pro.user.9ed77c1.22
├── PasswordLock.pro.user
└── PasswordLock.pro.user.66165d9.4.9-pre1
/Login/blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/Login/blue.png
--------------------------------------------------------------------------------
/Login/exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/Login/exit.png
--------------------------------------------------------------------------------
/Login/girl1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/Login/girl1.png
--------------------------------------------------------------------------------
/PasswordLock/back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/back.png
--------------------------------------------------------------------------------
/PasswordLock/bird.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/bird.webp
--------------------------------------------------------------------------------
/PasswordLock/blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/blue.png
--------------------------------------------------------------------------------
/PasswordLock/cloud.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/cloud.png
--------------------------------------------------------------------------------
/PasswordLock/exit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/exit.png
--------------------------------------------------------------------------------
/PasswordLock/girl1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/girl1.png
--------------------------------------------------------------------------------
/PasswordLock/girl2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/girl2.png
--------------------------------------------------------------------------------
/PasswordLock/lock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/lock.png
--------------------------------------------------------------------------------
/PasswordLock/chahua.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/chahua.png
--------------------------------------------------------------------------------
/PasswordLock/singup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/singup.png
--------------------------------------------------------------------------------
/PasswordLock/unlock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/unlock.png
--------------------------------------------------------------------------------
/PasswordLock/windy.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TDDou/Qt-logon-screen-/HEAD/PasswordLock/windy.webp
--------------------------------------------------------------------------------
/Login/images.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | blue.png
4 | exit.png
5 | girl1.png
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Login/main.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 |
3 | #include
4 |
5 | int main(int argc, char *argv[])
6 | {
7 | QApplication a(argc, argv);
8 | MainWindow w;
9 | w.show();
10 | return a.exec();
11 | }
12 |
--------------------------------------------------------------------------------
/PasswordLock/main.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include
3 |
4 | int main(int argc, char *argv[])
5 | {
6 | QApplication a(argc, argv);
7 | MainWindow w;
8 | w.show();
9 |
10 | return a.exec();
11 | }
12 |
--------------------------------------------------------------------------------
/PasswordLock/dbform.cpp:
--------------------------------------------------------------------------------
1 | #include "dbform.h"
2 | #include "ui_dbform.h"
3 |
4 | DBform::DBform(QWidget *parent) :
5 | QWidget(parent),
6 | ui(new Ui::DBform)
7 | {
8 | ui->setupUi(this);
9 | }
10 |
11 | DBform::~DBform()
12 | {
13 | delete ui;
14 | }
15 |
--------------------------------------------------------------------------------
/PasswordLock/dbform.h:
--------------------------------------------------------------------------------
1 | #ifndef DBFORM_H
2 | #define DBFORM_H
3 |
4 | #include
5 |
6 | namespace Ui {
7 | class DBform;
8 | }
9 |
10 | class DBform : public QWidget
11 | {
12 | Q_OBJECT
13 |
14 | public:
15 | explicit DBform(QWidget *parent = nullptr);
16 | ~DBform();
17 |
18 | private:
19 | Ui::DBform *ui;
20 | };
21 |
22 | #endif // DBFORM_H
23 |
--------------------------------------------------------------------------------
/PasswordLock/image.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | back.png
4 | blue.png
5 | chahua.png
6 | exit.png
7 | girl1.png
8 | girl2.png
9 | lock.png
10 | singup.png
11 | unlock.png
12 | cloud.png
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Login/signup.h:
--------------------------------------------------------------------------------
1 | #ifndef SIGNUP_H
2 | #define SIGNUP_H
3 |
4 | #include
5 |
6 | namespace Ui {
7 | class Signup;
8 | }
9 |
10 | class Signup : public QWidget
11 | {
12 | Q_OBJECT
13 |
14 | public:
15 | explicit Signup(QWidget *parent = nullptr);
16 | ~Signup();
17 |
18 | private slots:
19 | void on_pushButton_2_clicked();
20 |
21 | void on_btn_return_clicked();
22 |
23 | private:
24 | Ui::Signup *ui;
25 | };
26 |
27 | #endif // SIGNUP_H
28 |
--------------------------------------------------------------------------------
/PasswordLock/formdb.h:
--------------------------------------------------------------------------------
1 | #ifndef FORMDB_H
2 | #define FORMDB_H
3 |
4 | #include
5 |
6 |
7 |
8 |
9 | namespace Ui {
10 | class Formdb;
11 | }
12 |
13 | class Formdb : public QWidget
14 | {
15 | Q_OBJECT
16 |
17 | public:
18 | explicit Formdb(QWidget *parent = nullptr);
19 | ~Formdb();
20 | void sqlite_pwdInit();
21 |
22 |
23 | private slots:
24 | void on_btn_add_clicked();
25 |
26 | void on_btn_del_clicked();
27 |
28 | void on_btn_fre_clicked();
29 |
30 | private:
31 | Ui::Formdb *ui;
32 | };
33 |
34 | #endif // FORMDB_H
35 |
--------------------------------------------------------------------------------
/PasswordLock/signup.h:
--------------------------------------------------------------------------------
1 | #ifndef SIGNUP_H
2 | #define SIGNUP_H
3 |
4 | #include
5 | #include
6 |
7 | namespace Ui {
8 | class Signup;
9 | }
10 |
11 | class Signup : public QWidget
12 | {
13 | Q_OBJECT
14 |
15 | public:
16 | explicit Signup(QWidget *parent = nullptr);
17 | ~Signup();
18 |
19 | private slots:
20 | void on_btn_sureadd_clicked();
21 |
22 | void on_btn_return_clicked();
23 |
24 | private:
25 | Ui::Signup *ui;
26 | QString username;
27 | QString password;
28 | QString surepass;
29 | };
30 |
31 | #endif // SIGNUP_H
32 |
--------------------------------------------------------------------------------
/PasswordLock/mysqlquerymodel.h:
--------------------------------------------------------------------------------
1 | #ifndef MYSQLQUERYMODEL_H
2 | #define MYSQLQUERYMODEL_H
3 | #include
4 | #include
5 | #include
6 |
7 |
8 | class MySqlQueryModel : public QSqlQueryModel
9 | {
10 | public:
11 | MySqlQueryModel();
12 | Qt::ItemFlags flags(const QModelIndex &index) const;
13 | bool setData(const QModelIndex &index, const QVariant &value, int role);
14 | //QVariant data(const QModelIndex &item, int role=Qt::DisplayRole) const;
15 |
16 | private:
17 | bool setName(int userId, const QString &passwd);
18 | void refresh();
19 |
20 | };
21 |
22 | #endif // MYSQLQUERYMODEL_H
23 |
--------------------------------------------------------------------------------
/Login/mainwindow.h:
--------------------------------------------------------------------------------
1 | #ifndef MAINWINDOW_H
2 | #define MAINWINDOW_H
3 |
4 | #include
5 | #include //数据驱动
6 | #include //数据库执行语句
7 | #include //消息盒子
8 | #include
9 | void sqlite_Init();
10 |
11 | QT_BEGIN_NAMESPACE
12 | namespace Ui { class MainWindow; }
13 | QT_END_NAMESPACE
14 |
15 | class MainWindow : public QMainWindow
16 | {
17 | Q_OBJECT
18 |
19 | public:
20 | MainWindow(QWidget *parent = nullptr);
21 | ~MainWindow();
22 |
23 | private slots:
24 | void on_btn_signin_clicked();
25 |
26 | void on_btn_signup_clicked();
27 |
28 | private:
29 | Ui::MainWindow *ui;
30 | };
31 | #endif // MAINWINDOW_H
32 |
--------------------------------------------------------------------------------
/PasswordLock/client.h:
--------------------------------------------------------------------------------
1 | #ifndef CLIENT_H
2 | #define CLIENT_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | class QTcpSocket;
9 | extern QTcpSocket *tcpSocket;
10 |
11 | namespace Ui {
12 | class Client;
13 | }
14 |
15 | class Client : public QWidget
16 | {
17 | Q_OBJECT
18 |
19 | public:
20 | explicit Client(QWidget *parent = nullptr);
21 | ~Client();
22 |
23 | private slots:
24 | void on_btn_connect_clicked();
25 | void newConnect();
26 | void displayError(QAbstractSocket::SocketError);
27 |
28 | void on_pushButton_clicked();
29 |
30 | protected:
31 | void mousePressEvent(QMouseEvent *event);
32 | void mouseMoveEvent(QMouseEvent *event);
33 | void mouseReleaseEvent(QMouseEvent *event);
34 |
35 |
36 | private:
37 | Ui::Client *ui;
38 | //QTcpSocket *tcpSocket;
39 | QString message;
40 | // 用来存放数据的大小信息
41 | quint16 blockSize;
42 | QPoint last;
43 |
44 | };
45 |
46 | #endif // CLIENT_H
47 |
--------------------------------------------------------------------------------
/PasswordLock/function.h:
--------------------------------------------------------------------------------
1 | #ifndef FUNCTION_H
2 | #define FUNCTION_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include "client.h"
8 | #include
9 | #include //数据驱动
10 | #include //数据库执行语句
11 |
12 | void sqlite_pwdInit();
13 |
14 |
15 |
16 | namespace Ui {
17 | class Function;
18 | class QTcpSocket;
19 | }
20 |
21 | class Function : public QWidget
22 | {
23 | Q_OBJECT
24 |
25 | public:
26 | explicit Function(QWidget *parent = nullptr);
27 | ~Function();
28 | void unlock();
29 | void lock();
30 | int judge();
31 |
32 | private:
33 | Ui::Function *ui;
34 | QPoint last;
35 | protected:
36 | void mousePressEvent(QMouseEvent *event);
37 | void mouseMoveEvent(QMouseEvent *event);
38 | void mouseReleaseEvent(QMouseEvent *event);
39 |
40 | private slots:
41 |
42 | void on_btn_lock_clicked();
43 | void on_btn_unlock_clicked();
44 | void on_btn_exit_clicked();
45 | void on_btn_return_clicked();
46 | void on_btn_manage_clicked();
47 | };
48 |
49 | #endif // FUNCTION_H
50 |
--------------------------------------------------------------------------------
/PasswordLock/mainwindow.h:
--------------------------------------------------------------------------------
1 | #ifndef MAINWINDOW_H
2 | #define MAINWINDOW_H
3 |
4 | #include
5 |
6 | #include //数据驱动
7 | #include //数据库执行语句
8 | #include //加密
9 | #include //消息盒子
10 | #include
11 | #include
12 | #include
13 | #include
14 | #include
15 |
16 |
17 | extern QString passwd;
18 | extern QString Currentname;
19 | void sqlite_Init();
20 |
21 |
22 | namespace Ui {
23 | class MainWindow;
24 | }
25 |
26 | class MainWindow : public QMainWindow
27 | {
28 | Q_OBJECT
29 |
30 | public:
31 | explicit MainWindow(QWidget *parent = nullptr);
32 | ~MainWindow();
33 |
34 | private slots:
35 | void on_pushButton_clicked();
36 | void on_btn_new_clicked();
37 | void on_btn_login_clicked();
38 |
39 | protected:
40 | void mousePressEvent(QMouseEvent *event);
41 | void mouseMoveEvent(QMouseEvent *event);
42 | void mouseReleaseEvent(QMouseEvent *event);
43 |
44 |
45 | private:
46 | Ui::MainWindow *ui;
47 | QPoint last;
48 |
49 | };
50 |
51 | #endif // MAINWINDOW_H
52 |
--------------------------------------------------------------------------------
/Login/Login.pro:
--------------------------------------------------------------------------------
1 | QT += core gui sql
2 |
3 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
4 |
5 | CONFIG += c++11
6 |
7 | # The following define makes your compiler emit warnings if you use
8 | # any Qt feature that has been marked deprecated (the exact warnings
9 | # depend on your compiler). Please consult the documentation of the
10 | # deprecated API in order to know how to port your code away from it.
11 | DEFINES += QT_DEPRECATED_WARNINGS
12 |
13 | # You can also make your code fail to compile if it uses deprecated APIs.
14 | # In order to do so, uncomment the following line.
15 | # You can also select to disable deprecated APIs only up to a certain version of Qt.
16 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
17 |
18 | SOURCES += \
19 | main.cpp \
20 | mainwindow.cpp \
21 | signup.cpp
22 |
23 | HEADERS += \
24 | mainwindow.h \
25 | signup.h
26 |
27 | FORMS += \
28 | mainwindow.ui \
29 | signup.ui
30 |
31 | # Default rules for deployment.
32 | qnx: target.path = /tmp/$${TARGET}/bin
33 | else: unix:!android: target.path = /opt/$${TARGET}/bin
34 | !isEmpty(target.path): INSTALLS += target
35 |
36 | RESOURCES += \
37 | images.qrc
38 |
--------------------------------------------------------------------------------
/PasswordLock/signup.cpp:
--------------------------------------------------------------------------------
1 | #include "signup.h"
2 | #include "ui_signup.h"
3 | #include "mainwindow.h"
4 |
5 | Signup::Signup(QWidget *parent) :
6 | QWidget(parent),
7 | ui(new Ui::Signup)
8 | {
9 | ui->setupUi(this);
10 | //设置无边框
11 | this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
12 | }
13 |
14 | Signup::~Signup()
15 | {
16 | delete ui;
17 | }
18 | //注册
19 | void Signup::on_btn_sureadd_clicked()
20 | {
21 | sqlite_Init();
22 | username = ui->lineEdit_newname->text();
23 | password = ui->lineEdit_newpass->text();
24 | surepass = ui->lineEdit_surepass->text();
25 | //判断密码是否一致
26 | if(password == surepass)
27 | {
28 | QString sql=QString("insert into user(username,password) values('%1','%2');")
29 | .arg(username).arg(password);
30 | //创建执行语句对象
31 | QSqlQuery query;
32 | //判断执行结果
33 | if(!query.exec(sql))
34 | {
35 | qDebug()<<"insert into error";
36 | QMessageBox::information(this,"注册认证","插入失败!");
37 | }
38 | else
39 | {
40 | qDebug()<<"insert into success";
41 | QMessageBox::information(this,"注册认证","插入成功!");
42 | MainWindow *w = new MainWindow;
43 | w->show();
44 | this->close();
45 | }
46 |
47 | }else{
48 | QMessageBox::information(this,"注册认证","两次密码输入不一致");
49 | }
50 | }
51 | //返回登录
52 | void Signup::on_btn_return_clicked()
53 | {
54 | MainWindow *w = new MainWindow;
55 | w->show();
56 | this->close();
57 | }
58 |
--------------------------------------------------------------------------------
/Login/signup.cpp:
--------------------------------------------------------------------------------
1 | #include "signup.h"
2 | #include "ui_signup.h"
3 | #include "mainwindow.h"
4 |
5 | Signup::Signup(QWidget *parent) :
6 | QWidget(parent),
7 | ui(new Ui::Signup)
8 | {
9 | ui->setupUi(this);
10 | QPixmap *pix = new QPixmap(":/girl1.png");
11 | QSize sz = ui->label_image->size();
12 | ui->label_image->setPixmap(pix->scaled(sz));
13 | }
14 |
15 | Signup::~Signup()
16 | {
17 | delete ui;
18 | }
19 |
20 | //返回登录按钮
21 | void Signup::on_btn_return_clicked()
22 | {
23 | MainWindow *w = new MainWindow;
24 | w->show();
25 | this->close();
26 | }
27 |
28 | //注册按钮
29 | void Signup::on_pushButton_2_clicked()
30 | {
31 | sqlite_Init();
32 | QString username = ui->lineEdit_username->text();
33 | QString password = ui->lineEdit_passwd->text();
34 | QString surepass = ui->lineEdit_surepasswd->text();
35 | //判断密码是否一致
36 | if(password == surepass)
37 | {
38 | QString sql=QString("insert into user(username,password) values('%1','%2');")
39 | .arg(username).arg(password);
40 | //创建执行语句对象
41 | QSqlQuery query;
42 | //判断执行结果
43 | if(!query.exec(sql))
44 | {
45 | qDebug()<<"insert into error";
46 | QMessageBox::information(this,"注册认证","插入失败!");
47 | }
48 | else
49 | {
50 | qDebug()<<"insert into success";
51 | QMessageBox::information(this,"注册认证","插入成功!");
52 | MainWindow *w = new MainWindow;
53 | w->show();
54 | this->close();
55 | }
56 |
57 | }else{
58 | QMessageBox::information(this,"注册认证","两次密码输入不一致");
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/PasswordLock/PasswordLock.pro:
--------------------------------------------------------------------------------
1 | #-------------------------------------------------
2 | #
3 | # Project created by QtCreator 2022-06-27T15:59:15
4 | #
5 | #-------------------------------------------------
6 |
7 | QT += core gui sql network
8 |
9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
10 |
11 | TARGET = PasswordLock
12 | TEMPLATE = app
13 |
14 | # The following define makes your compiler emit warnings if you use
15 | # any feature of Qt which has been marked as deprecated (the exact warnings
16 | # depend on your compiler). Please consult the documentation of the
17 | # deprecated API in order to know how to port your code away from it.
18 | DEFINES += QT_DEPRECATED_WARNINGS
19 |
20 | # You can also make your code fail to compile if you use deprecated APIs.
21 | # In order to do so, uncomment the following line.
22 | # You can also select to disable deprecated APIs only up to a certain version of Qt.
23 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
24 |
25 | CONFIG += c++11
26 |
27 | SOURCES += \
28 | main.cpp \
29 | mainwindow.cpp \
30 | signup.cpp \
31 | client.cpp \
32 | function.cpp \
33 | mysqlquerymodel.cpp \
34 | formdb.cpp
35 |
36 | HEADERS += \
37 | mainwindow.h \
38 | signup.h \
39 | client.h \
40 | function.h \
41 | mysqlquerymodel.h \
42 | formdb.h
43 |
44 | FORMS += \
45 | mainwindow.ui \
46 | signup.ui \
47 | client.ui \
48 | function.ui \
49 | formdb.ui
50 |
51 | # Default rules for deployment.
52 | qnx: target.path = /tmp/$${TARGET}/bin
53 | else: unix:!android: target.path = /opt/$${TARGET}/bin
54 | !isEmpty(target.path): INSTALLS += target
55 |
56 | RESOURCES += \
57 | image.qrc
58 |
--------------------------------------------------------------------------------
/PasswordLock/mysqlquerymodel.cpp:
--------------------------------------------------------------------------------
1 | #include "mysqlquerymodel.h"
2 |
3 | #include "mainwindow.h"
4 | #include
5 | #include
6 |
7 | MySqlQueryModel::MySqlQueryModel()
8 | {
9 |
10 | }
11 |
12 | Qt::ItemFlags MySqlQueryModel::flags(const QModelIndex &index) const
13 | {
14 | Qt::ItemFlags flags = QSqlQueryModel::flags(index);
15 | if (index.column() == 2) //第二个属性可更改
16 | flags |= Qt::ItemIsEditable;
17 | return flags;
18 |
19 |
20 | }
21 |
22 | bool MySqlQueryModel::setData(const QModelIndex &index, const QVariant &value, int role)
23 | {
24 | if (index.column() < 1 || index.column() > 2)
25 | return false;
26 | QModelIndex primaryKeyIndex = QSqlQueryModel::index(index.row(), 0);
27 | int id = data(primaryKeyIndex).toInt(); //获取id号
28 | clear();
29 | bool ok;
30 | if (index.column() == 2) //第二个属性可更改
31 | ok = setName(id, value.toString());
32 | refresh();
33 | return ok;
34 |
35 | }
36 |
37 |
38 |
39 | bool MySqlQueryModel::setName(int userId, const QString &passwd)
40 | {
41 | QSqlQuery query;
42 | query.prepare("update passwd set passwd = ? where id = ?");
43 | query.addBindValue(passwd);
44 | query.addBindValue(userId);
45 | return query.exec();
46 |
47 |
48 | }
49 |
50 | void MySqlQueryModel::refresh()
51 | {
52 |
53 | QString userId = Currentname;
54 | QString sql=QString("select * from passwd where userId='%1'")
55 | .arg(userId);
56 | setQuery(sql);
57 | setHeaderData(0, Qt::Horizontal, QObject::tr("id"));
58 | setHeaderData(1, Qt::Horizontal, QObject::tr("userId"));
59 | setHeaderData(2, Qt::Horizontal, QObject::tr("passwd"));
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/PasswordLock/dbform.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | DBform
4 |
5 |
6 |
7 | 0
8 | 0
9 | 626
10 | 445
11 |
12 |
13 |
14 | Form
15 |
16 |
17 |
18 |
19 | 30
20 | 30
21 | 451
22 | 311
23 |
24 |
25 |
26 |
27 |
28 |
29 | 520
30 | 60
31 | 75
32 | 23
33 |
34 |
35 |
36 | PushButton
37 |
38 |
39 |
40 |
41 |
42 | 520
43 | 110
44 | 75
45 | 23
46 |
47 |
48 |
49 | PushButton
50 |
51 |
52 |
53 |
54 |
55 | 520
56 | 160
57 | 75
58 | 23
59 |
60 |
61 |
62 | PushButton
63 |
64 |
65 |
66 |
67 |
68 | 520
69 | 210
70 | 75
71 | 23
72 |
73 |
74 |
75 | PushButton
76 |
77 |
78 |
79 |
80 |
81 | 80
82 | 370
83 | 54
84 | 12
85 |
86 |
87 |
88 | TextLabel
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/Login/mainwindow.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include "ui_mainwindow.h"
3 | #include "signup.h"
4 |
5 | #include
6 | MainWindow::MainWindow(QWidget *parent)
7 | : QMainWindow(parent)
8 | , ui(new Ui::MainWindow)
9 | {
10 | ui->setupUi(this);
11 |
12 | QPixmap *pix = new QPixmap(":/blue.png");
13 | QSize sz = ui->label_image->size();
14 | ui->label_image->setPixmap(pix->scaled(sz));
15 |
16 | //设置阴影
17 | QGraphicsDropShadowEffect *shadow = new QGraphicsDropShadowEffect(this);
18 | shadow->setOffset(-3, 0);
19 | shadow->setColor(QColor("#888888"));
20 | shadow->setBlurRadius(30);
21 | ui->label_image->setGraphicsEffect(shadow);
22 | //初始化数据库
23 | sqlite_Init();
24 |
25 | }
26 |
27 | MainWindow::~MainWindow()
28 | {
29 | delete ui;
30 | }
31 |
32 | void sqlite_Init()
33 | {
34 |
35 | QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
36 | db.setDatabaseName("user.db");
37 | if(!db.open())
38 | {
39 | qDebug()<<"open error";
40 | }
41 | //create excle
42 | QString createsql=QString("create table if not exists user(id integer primary key autoincrement,"
43 | "username ntext unique not NULL,"
44 | "password ntext not NULL)");
45 | QSqlQuery query;
46 | if(!query.exec(createsql)){
47 | qDebug()<<"table create error";
48 | }
49 | else{
50 | qDebug()<<"table create success";
51 | }
52 | }
53 |
54 |
55 | void MainWindow::on_btn_signin_clicked()
56 | {
57 | sqlite_Init();
58 | QString username = ui->lineEdit_username->text();
59 | QString password = ui->lineEdit_password->text();
60 | QString sql=QString("select * from user where username='%1' and password='%2'")
61 | .arg(username).arg(password);
62 | //创建执行语句对象
63 | QSqlQuery query(sql);
64 | //判断执行结果
65 | if(!query.next())
66 | {
67 | qDebug()<<"Login error";
68 | QMessageBox::information(this,"登录认证","登录失败,账户或者密码错误");
69 |
70 | }
71 | else
72 | {
73 | qDebug()<<"Login success";
74 | QMessageBox::information(this,"登录认证","登录成功");
75 | QWidget *w = new QWidget;
76 | w->show();
77 | this->close();
78 | }
79 | }
80 |
81 | void MainWindow::on_btn_signup_clicked()
82 | {
83 | this->close();
84 | Signup *s = new Signup;
85 | s->show();
86 |
87 | }
88 |
--------------------------------------------------------------------------------
/PasswordLock/formdb.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | Formdb
4 |
5 |
6 |
7 | 0
8 | 0
9 | 630
10 | 452
11 |
12 |
13 |
14 | Form
15 |
16 |
17 |
18 |
19 | 520
20 | 90
21 | 75
22 | 23
23 |
24 |
25 |
26 | Add
27 |
28 |
29 |
30 |
31 |
32 | 520
33 | 140
34 | 75
35 | 23
36 |
37 |
38 |
39 | Delete
40 |
41 |
42 |
43 |
44 |
45 | 520
46 | 190
47 | 75
48 | 23
49 |
50 |
51 |
52 | freash
53 |
54 |
55 |
56 |
57 |
58 | 10
59 | 30
60 | 441
61 | 301
62 |
63 |
64 |
65 |
66 |
67 |
68 | 350
69 | 370
70 | 161
71 | 41
72 |
73 |
74 |
75 | pleace input passwrd
76 |
77 |
78 |
79 |
80 |
81 | 90
82 | 370
83 | 171
84 | 41
85 |
86 |
87 |
88 | pleace input Id
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/PasswordLock/client.cpp:
--------------------------------------------------------------------------------
1 | #include "client.h"
2 | #include "ui_client.h"
3 | #include
4 | #include "mainwindow.h"
5 | #include
6 | #include "function.h"
7 |
8 | QString str;
9 | QTcpSocket *tcpSocket;
10 | Client::Client(QWidget *parent) :
11 | QWidget(parent),
12 | ui(new Ui::Client)
13 | {
14 | ui->setupUi(this);
15 |
16 | //设置窗体透明
17 | this->setAttribute(Qt::WA_TranslucentBackground, true);
18 | //设置无边框
19 | this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
20 | //实例阴影shadow
21 | QGraphicsDropShadowEffect *shadow = new QGraphicsDropShadowEffect(this);
22 | //设置阴影距离
23 | shadow->setOffset(-7, 5);
24 | //设置阴影颜色
25 | shadow->setColor(QColor("#888888"));
26 | //设置阴影圆角
27 | shadow->setBlurRadius(30);
28 | //给嵌套QWidget设置阴影
29 | ui->label_3->setGraphicsEffect(shadow);
30 | //给垂直布局器设置边距(此步很重要, 设置宽度为阴影的宽度)
31 | ui->label_3->setContentsMargins(1,1,1,1);
32 |
33 |
34 |
35 | tcpSocket = new QTcpSocket(this);
36 | connect(tcpSocket,&QTcpSocket::readyRead,[=](){
37 |
38 | QByteArray arry = tcpSocket->readAll();
39 | str.append(arry);
40 | str.replace("\r","");
41 | str.replace("\n","");
42 | if(str.length() == 6)
43 | {
44 |
45 | passwd = str;
46 | str.clear();
47 | qDebug()<abort();
72 | tcpSocket->connectToHost(ui->lineEdit_IP->text(),
73 | ui->lineEdit_Port->text().toInt());
74 |
75 | if (tcpSocket->waitForConnected(2)) {
76 | qDebug() << "connect successfuilly!\n";
77 | tcpSocket->write("hello");
78 | ui->label_status->setText("connect");
79 | // Function *F = new Function;
80 | // F->show();
81 | } else {
82 | qDebug() << "connect failed!\n";
83 | QMessageBox::information(this,"网络连接","连接失败,请检查IP与Port信息");
84 |
85 | }
86 |
87 |
88 | }
89 |
90 | void Client::displayError(QAbstractSocket::SocketError)
91 | {
92 | qDebug() << tcpSocket->errorString();
93 | }
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | void Client::mousePressEvent(QMouseEvent *event)
102 | {
103 | last = event->globalPos(); //获取按下时的坐标,全局坐标
104 | }
105 |
106 | void Client::mouseMoveEvent(QMouseEvent *event)
107 | {
108 | int dx = event->globalX() - last.x(); //
109 | int dy = event->globalY() - last.y();
110 |
111 | last = event->globalPos();
112 | move(x()+dx, y()+dy);
113 | }
114 |
115 | void Client::mouseReleaseEvent(QMouseEvent *event)
116 | {
117 | int dx = event->globalX() - last.x();
118 | int dy = event->globalY() - last.y();
119 | move(x()+dx, y()+dy);
120 | }
121 |
122 |
123 |
124 |
125 | void Client::on_pushButton_clicked()
126 | {
127 | this->close();
128 | }
129 |
--------------------------------------------------------------------------------
/PasswordLock/formdb.cpp:
--------------------------------------------------------------------------------
1 | #include "formdb.h"
2 | #include "ui_formdb.h"
3 | //#include "mainwindow.h"
4 | #include "mysqlquerymodel.h"
5 | #include "mainwindow.h"
6 | #include
7 | #include
8 |
9 | Formdb::Formdb(QWidget *parent) :
10 | QWidget(parent),
11 | ui(new Ui::Formdb)
12 | {
13 | ui->setupUi(this);
14 | MySqlQueryModel *myModel = new MySqlQueryModel;
15 | QString userId = Currentname;
16 | QString sql=QString("select * from passwd where userId='%1'")
17 | .arg(userId);
18 | //setQuery(sql);
19 | myModel->setQuery(sql);
20 | myModel->setHeaderData(0, Qt::Horizontal, tr("id"));
21 | myModel->setHeaderData(1, Qt::Horizontal, tr("name"));
22 | myModel->setHeaderData(2, Qt::Horizontal, tr("passwd"));
23 | ui->tableView->setModel(myModel);
24 |
25 |
26 |
27 |
28 | }
29 |
30 | Formdb::~Formdb()
31 | {
32 | delete ui;
33 | }
34 |
35 | void Formdb::sqlite_pwdInit()
36 | {
37 |
38 | QSqlDatabase db;
39 | if(QSqlDatabase::contains("qt_sql_default_connection"))
40 | db = QSqlDatabase::database("qt_sql_default_connection");
41 | else{
42 | db = QSqlDatabase::addDatabase("QSQLITE");
43 | }
44 | db.setDatabaseName("user.db");
45 | if(!db.open())
46 | {
47 | qDebug()<<"open error";
48 | }
49 | //create excle
50 | QString createsql=QString("create table if not exists passwd(id integer primary key autoincrement,"
51 | "userId ntext,"
52 | "passwd ntext unique)");
53 |
54 | }
55 |
56 | void Formdb::on_btn_add_clicked()
57 | {
58 | sqlite_pwdInit();
59 |
60 | QString passwd = ui->lineEdit_passwd->text();
61 | QString sql=QString("insert into passwd(userId,passwd) values('%1','%2');")
62 | .arg(Currentname).arg(passwd);
63 | qDebug()<lineEdit_passwd->clear();
72 | on_btn_fre_clicked();
73 |
74 | }
75 |
76 | void Formdb::on_btn_del_clicked()
77 | {
78 | qDebug()<<" this is de1";
79 | sqlite_pwdInit();
80 | qDebug()<<" this is de2";
81 | int Id = ui->lineEdit_id->text().toInt();
82 | QString sql=QString("delete from passwd where id='%1';")
83 | .arg(Id);
84 | QSqlQuery query;
85 |
86 | if(!query.exec(sql)){
87 | qDebug()<<" delete error";
88 | }
89 | else {
90 | qDebug()<<" this is de3";
91 | }
92 |
93 | ui->lineEdit_id->clear();
94 |
95 | on_btn_fre_clicked();
96 |
97 | }
98 |
99 | void Formdb::on_btn_fre_clicked()
100 | {
101 | //freash
102 | QString userId = Currentname;
103 | MySqlQueryModel *myModel = new MySqlQueryModel;
104 | QString sql=QString("select * from passwd where userId='%1'")
105 | .arg(userId);
106 | //setQuery(sql);
107 | myModel->setQuery(sql);
108 | myModel->setHeaderData(0, Qt::Horizontal, tr("id"));
109 | myModel->setHeaderData(1, Qt::Horizontal, tr("name"));
110 | myModel->setHeaderData(2, Qt::Horizontal, tr("passwd"));
111 | ui->tableView->setModel(myModel);
112 | }
113 |
--------------------------------------------------------------------------------
/PasswordLock/mainwindow.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include "ui_mainwindow.h"
3 | #include "client.h"
4 | #include "function.h"
5 | #include "signup.h"
6 |
7 |
8 |
9 | QString passwd;
10 | QString Currentname;
11 | MainWindow::MainWindow(QWidget *parent) :
12 | QMainWindow(parent),
13 | ui(new Ui::MainWindow)
14 | {
15 | ui->setupUi(this);
16 | //设置窗体透明
17 | this->setAttribute(Qt::WA_TranslucentBackground, true);
18 | //设置无边框
19 | this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
20 | //实例阴影shadow
21 | QGraphicsDropShadowEffect *shadow = new QGraphicsDropShadowEffect(this);
22 | //设置阴影距离
23 | shadow->setOffset(-3, 0);
24 | //设置阴影颜色
25 | shadow->setColor(QColor("#888888"));
26 | //设置阴影圆角
27 | shadow->setBlurRadius(30);
28 | //给嵌套QWidget设置阴影
29 | ui->label->setGraphicsEffect(shadow);
30 | //给垂直布局器设置边距(此步很重要, 设置宽度为阴影的宽度)
31 | ui->label->setContentsMargins(1,1,1,1);
32 |
33 | sqlite_Init();
34 |
35 | }
36 |
37 | MainWindow::~MainWindow()
38 | {
39 | delete ui;
40 | }
41 |
42 | void sqlite_Init()
43 | {
44 |
45 | QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
46 | db.setDatabaseName("user.db");
47 | if(!db.open())
48 | {
49 | qDebug()<<"open error";
50 | }
51 | //create excle
52 | QString createsql=QString("create table if not exists user(id integer primary key autoincrement,"
53 | "username ntext unique not NULL,"
54 | "password ntext not NULL)");
55 | QSqlQuery query;
56 | if(!query.exec(createsql)){
57 | qDebug()<<"table create error";
58 | }
59 | else{
60 | qDebug()<<"table create success";
61 | }
62 | }
63 |
64 |
65 | //关闭
66 | void MainWindow::on_pushButton_clicked()
67 | {
68 | this->close();
69 | }
70 | //注册
71 | void MainWindow::on_btn_new_clicked()
72 | {
73 | Signup *w = new Signup;
74 | w->show();
75 | this->hide();
76 |
77 | }
78 | //登录
79 | void MainWindow::on_btn_login_clicked()
80 | {
81 | sqlite_Init();
82 | QString username = ui->lineEdit_username->text();
83 | QString password = ui->lineEdit_password->text();
84 | QString sql=QString("select * from user where username='%1' and password='%2'")
85 | .arg(username).arg(password);
86 | //创建执行语句对象
87 | QSqlQuery query(sql);
88 | //判断执行结果
89 | if(!query.next())
90 | {
91 | qDebug()<<"Login error";
92 | QMessageBox::information(this,"登录认证","登录失败,账户或者密码错误");
93 |
94 | }
95 | else
96 | {
97 | Currentname = ui->lineEdit_username->text();
98 | qDebug()<<"Login success";
99 | QMessageBox::information(this,"登录认证","登录成功");
100 |
101 | Function *F = new Function;
102 | F->show();
103 |
104 | Client *C = new Client;
105 | C->show();
106 | this->close();
107 | }
108 | }
109 |
110 |
111 | //鼠标按下
112 | void MainWindow::mousePressEvent(QMouseEvent *event)
113 | {
114 | last = event->globalPos();
115 | }
116 | //鼠标移动
117 | void MainWindow::mouseMoveEvent(QMouseEvent *event)
118 | {
119 | int dx = event->globalX() - last.x(); //
120 | int dy = event->globalY() - last.y();
121 |
122 | last = event->globalPos();
123 | move(x()+dx, y()+dy);
124 | }
125 |
126 | void MainWindow::mouseReleaseEvent(QMouseEvent *event)
127 | {
128 | int dx = event->globalX() - last.x();
129 | int dy = event->globalY() - last.y();
130 | move(x()+dx, y()+dy);
131 | }
132 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/PasswordLock/function.cpp:
--------------------------------------------------------------------------------
1 | #include "function.h"
2 | #include "ui_function.h"
3 | #include "mainwindow.h"
4 | #include "mysqlquerymodel.h"
5 | #include "formdb.h"
6 | #include
7 | #include
8 | #include
9 |
10 |
11 | Function::Function(QWidget *parent) :
12 | QWidget(parent),
13 | ui(new Ui::Function)
14 | {
15 | ui->setupUi(this);
16 | //设置无边框
17 | this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
18 | ui->labe_image->setPixmap(QPixmap(":/lock.png"));
19 |
20 | sqlite_pwdInit();
21 |
22 | QTimer *timer = new QTimer(this);
23 | connect(timer,&QTimer::timeout,[=](){
24 | int ok = judge();
25 | if(ok == 1 ){
26 |
27 | unlock();
28 | passwd.clear();
29 |
30 | }
31 | if (ok == 0 && passwd != ""){
32 |
33 | lock();
34 | passwd.clear();
35 | }
36 | });
37 | timer->start(100);
38 | }
39 |
40 | void sqlite_pwdInit(){
41 |
42 | QSqlDatabase db;
43 |
44 | if(QSqlDatabase::contains("qt_sql_default_connection"))
45 | db = QSqlDatabase::database("qt_sql_default_connection");
46 | else{
47 |
48 | db = QSqlDatabase::addDatabase("QSQLITE");
49 | }
50 | db.setDatabaseName("user.db");
51 | if(!db.open())
52 | {
53 | qDebug()<<"open error";
54 | }
55 | //create excle
56 | QSqlQuery query;
57 | QString createsql=QString("create table if not exists passwd(id integer primary key autoincrement,"
58 | "userId ntext,"
59 | "passwd ntext unique)");
60 | query.exec(createsql);
61 |
62 | QString sql=QString("insert into passwd(userId,passwd) values('%1','000000');")
63 | .arg(Currentname);
64 | //创建执行语句对象
65 |
66 | if(!query.exec(sql)){
67 | //qDebug()<<"init insert error";
68 | }
69 |
70 |
71 | }
72 |
73 | Function::~Function()
74 | {
75 | delete ui;
76 |
77 | }
78 |
79 | void Function::mousePressEvent(QMouseEvent *event)
80 | {
81 | last = event->globalPos(); //获取按下时的坐标,全局坐标
82 | }
83 |
84 | void Function::mouseMoveEvent(QMouseEvent *event)
85 | {
86 | int dx = event->globalX() - last.x(); //
87 | int dy = event->globalY() - last.y();
88 |
89 | last = event->globalPos();
90 | move(x()+dx, y()+dy);
91 | }
92 |
93 | void Function::mouseReleaseEvent(QMouseEvent *event)
94 | {
95 | int dx = event->globalX() - last.x();
96 | int dy = event->globalY() - last.y();
97 | move(x()+dx, y()+dy);
98 | }
99 |
100 |
101 |
102 | void Function::on_btn_lock_clicked()
103 | {
104 |
105 | lock();
106 | passwd.clear();
107 | }
108 |
109 | void Function::on_btn_unlock_clicked()
110 | {
111 |
112 | unlock();
113 | passwd.clear();
114 | }
115 |
116 |
117 | void Function::on_btn_exit_clicked()
118 | {
119 | this->close();
120 | }
121 |
122 | void Function::on_btn_return_clicked()
123 | {
124 | MainWindow *M = new MainWindow;
125 | M->show();
126 | this->close();
127 | }
128 |
129 | int Function::judge()
130 | {
131 | sqlite_pwdInit();
132 | if(passwd != ""){
133 | QString userId = Currentname;
134 | QString pass = passwd;
135 | QString sql=QString("select * from passwd where userId='%1' and passwd='%2'")
136 | .arg(userId).arg(pass);
137 | //创建执行语句对象
138 | QSqlQuery query(sql);
139 | //判断执行结果
140 | if(!query.next())
141 | {
142 | qDebug()<<"password wrong";
143 | //QMessageBox::information(this,"登录认证","登录失败,账户或者密码错误");
144 | return 0;
145 | }
146 | else
147 | {
148 | qDebug()<<"password right";
149 | //QMessageBox::information(this,"登录认证","登录成功");
150 | return 1;
151 |
152 | }
153 | }
154 | return 0;
155 | }
156 |
157 | void Function::unlock()
158 | {
159 | ui->label->setText("UnLock");
160 | ui->labe_image->setPixmap(QPixmap(":/unlock.png"));
161 | QString str1 = "1";
162 | std::string sendInfo = str1.toStdString();
163 | tcpSocket->write(sendInfo.c_str());
164 | }
165 |
166 | void Function:: lock()
167 | {
168 | ui->label->setText("Lock");
169 | ui->labe_image->setPixmap(QPixmap(":/lock.png"));
170 | QString str2 = "0";
171 | std::string sendInfo = str2.toStdString();
172 | tcpSocket->write(sendInfo.c_str());
173 | }
174 |
175 | void Function::on_btn_manage_clicked()
176 | {
177 |
178 | Formdb * F = new Formdb;
179 | F->show();
180 | }
181 |
--------------------------------------------------------------------------------
/PasswordLock/function.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | Function
4 |
5 |
6 |
7 | 0
8 | 0
9 | 595
10 | 370
11 |
12 |
13 |
14 | Form
15 |
16 |
17 | background-color: rgb(255, 255, 255);
18 |
19 |
20 |
21 |
22 | 300
23 | 230
24 | 271
25 | 141
26 |
27 |
28 |
29 | font: 48pt "Arial Rounded MT Bold";
30 | color: rgb(255, 206, 115);
31 |
32 |
33 | Lock
34 |
35 |
36 | Qt::AlignCenter
37 |
38 |
39 |
40 |
41 |
42 | 30
43 | 140
44 | 91
45 | 41
46 |
47 |
48 |
49 | background-color: rgb(16, 71, 169);
50 | color: rgb(255, 206, 115);
51 | border-radius:7px;padding:2px 4px;
52 | font: 15pt "Candara";
53 |
54 |
55 | Lock
56 |
57 |
58 |
59 |
60 |
61 | 150
62 | 140
63 | 91
64 | 41
65 |
66 |
67 |
68 | background-color: rgb(16, 71, 169);
69 | color: rgb(255, 206, 115);
70 | border-radius:7px;padding:2px 4px;
71 | font: 15pt "Candara";
72 |
73 |
74 | UnLock
75 |
76 |
77 |
78 |
79 |
80 | 30
81 | 210
82 | 211
83 | 41
84 |
85 |
86 |
87 | background-color: rgb(16, 71, 169);
88 | color: rgb(255, 206, 115);
89 | border-radius:7px;padding:2px 4px;
90 | font: 15pt "Candara";
91 |
92 |
93 | Manage password
94 |
95 |
96 |
97 |
98 |
99 | 330
100 | 50
101 | 201
102 | 201
103 |
104 |
105 |
106 | /*background-image: url(:/lock.png);*/
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | 530
116 | 0
117 | 51
118 | 31
119 |
120 |
121 |
122 | font: 18pt "Arial Rounded MT Bold";
123 | color: rgb(255, 206, 115);
124 |
125 |
126 | X
127 |
128 |
129 | true
130 |
131 |
132 |
133 |
134 |
135 | 20
136 | 320
137 | 131
138 | 31
139 |
140 |
141 |
142 | color: rgb(29, 123, 255);
143 | font: 25 9pt "DIN Next LT Pro Light";
144 | font: 10pt "Century Gothic";
145 | text-decoration: underline;
146 |
147 |
148 | Return to Login
149 |
150 |
151 | true
152 |
153 |
154 |
155 |
156 |
157 | 10
158 | 50
159 | 151
160 | 61
161 |
162 |
163 |
164 | font: 87 25pt "Arial Black";
165 |
166 |
167 | MENU
168 |
169 |
170 | Qt::AlignCenter
171 |
172 |
173 |
174 |
175 |
176 |
177 |
--------------------------------------------------------------------------------
/PasswordLock/client.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | Client
4 |
5 |
6 |
7 | 0
8 | 0
9 | 707
10 | 403
11 |
12 |
13 |
14 | Form
15 |
16 |
17 | border-radius:10px;
18 | /*background-color: rgb(107, 144, 212);*/
19 | /*background-color: rgb(255, 255, 255);*/
20 |
21 |
22 |
23 |
24 |
25 | 150
26 | 60
27 | 181
28 | 51
29 |
30 |
31 |
32 | color: rgb(255, 206, 115);
33 | font: 87 15pt "Arial Black";
34 |
35 |
36 | Network
37 |
38 |
39 | Qt::AlignCenter
40 |
41 |
42 |
43 |
44 |
45 | 270
46 | 140
47 | 171
48 | 31
49 |
50 |
51 |
52 | /*background-color: rgb(255, 255, 255);*/
53 | background-color: rgb(225, 225, 225);
54 | border-radius:10px;
55 | font: 9pt "Century Gothic";
56 |
57 |
58 | Pleace input IP
59 |
60 |
61 |
62 |
63 |
64 | 270
65 | 180
66 | 171
67 | 31
68 |
69 |
70 |
71 | /*background-color: rgb(255, 255, 255);*/
72 | background-color: rgb(225, 225, 225);
73 | border-radius:10px;
74 | font: 9pt "Century Gothic";
75 |
76 |
77 | Pleace input Port
78 |
79 |
80 |
81 |
82 |
83 | 300
84 | 230
85 | 101
86 | 31
87 |
88 |
89 |
90 | background-color: rgb(16, 71, 169);
91 | color: rgb(255, 206, 115);
92 | font: 75 9pt "Arial";
93 |
94 |
95 | BLINK
96 |
97 |
98 |
99 |
100 |
101 | 260
102 | 270
103 | 201
104 | 21
105 |
106 |
107 |
108 | color: rgb(127, 127, 127);
109 | font: 9pt "Century Gothic";
110 |
111 |
112 | Current connection status is:
113 |
114 |
115 |
116 |
117 |
118 | 310
119 | 290
120 | 101
121 | 21
122 |
123 |
124 |
125 | color: rgb(255, 206, 115);
126 | text-decoration: underline;
127 | font: 75 9pt "Agency FB";
128 | font: 87 9pt "Arial Black";
129 |
130 |
131 | disconnect
132 |
133 |
134 |
135 |
136 |
137 | 120
138 | 0
139 | 451
140 | 331
141 |
142 |
143 |
144 | background-image: url(:/cloud.png);
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 | 500
154 | 80
155 | 31
156 | 21
157 |
158 |
159 |
160 | color: rgb(255, 206, 115);
161 | font: 87 10pt "Arial Black";
162 |
163 |
164 | X
165 |
166 |
167 | label_3
168 | label
169 | lineEdit_IP
170 | lineEdit_Port
171 | btn_connect
172 | label_2
173 | label_status
174 | pushButton
175 |
176 |
177 |
178 |
179 |
--------------------------------------------------------------------------------
/Login/signup.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | Signup
4 |
5 |
6 |
7 | 0
8 | 0
9 | 745
10 | 486
11 |
12 |
13 |
14 | Form
15 |
16 |
17 | background-color: rgb(255, 255, 255);
18 |
19 |
20 |
21 |
22 | 50
23 | 0
24 | 261
25 | 481
26 |
27 |
28 |
29 | TextLabel
30 |
31 |
32 |
33 |
34 |
35 | 370
36 | 40
37 | 161
38 | 31
39 |
40 |
41 |
42 | font: 87 20pt "Arial Black";
43 |
44 |
45 | Hello
46 |
47 |
48 |
49 |
50 |
51 | 370
52 | 70
53 | 301
54 | 51
55 |
56 |
57 |
58 | font: 87 20pt "Arial Black";
59 |
60 |
61 | Welcome to us!
62 |
63 |
64 |
65 |
66 |
67 | 370
68 | 140
69 | 291
70 | 309
71 |
72 |
73 |
74 | -
75 |
76 |
77 | font: 10pt "Arial";
78 |
79 |
80 | Username
81 |
82 |
83 |
84 | -
85 |
86 |
87 |
88 | 0
89 | 40
90 |
91 |
92 |
93 |
94 | -
95 |
96 |
97 | font: 10pt "Arial";
98 |
99 |
100 | Password
101 |
102 |
103 |
104 | -
105 |
106 |
107 |
108 | 0
109 | 40
110 |
111 |
112 |
113 |
114 | -
115 |
116 |
117 | font: 10pt "Arial";
118 |
119 |
120 | Ensure your password:
121 |
122 |
123 |
124 | -
125 |
126 |
127 |
128 | 0
129 | 40
130 |
131 |
132 |
133 |
134 | -
135 |
136 |
-
137 |
138 |
139 | Qt::Vertical
140 |
141 |
142 |
143 | 20
144 | 40
145 |
146 |
147 |
148 |
149 | -
150 |
151 |
152 |
153 | 0
154 | 40
155 |
156 |
157 |
158 | background-color: rgb(29, 123, 255);
159 | color: rgb(255, 255, 255);
160 | font: 25 9pt "Bahnschrift Light";
161 |
162 |
163 | Sure
164 |
165 |
166 |
167 | -
168 |
169 |
170 |
171 | 0
172 | 40
173 |
174 |
175 |
176 | background-color: rgb(29, 123, 255);
177 | color: rgb(255, 255, 255);
178 | font: 25 9pt "Bahnschrift Light";
179 |
180 |
181 | Return login
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
--------------------------------------------------------------------------------
/PasswordLock/mainwindow.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindow
4 |
5 |
6 |
7 | 0
8 | 0
9 | 780
10 | 520
11 |
12 |
13 |
14 | MainWindow
15 |
16 |
17 | background-color: rgb(255, 255, 255);
18 |
19 |
20 |
21 |
22 |
23 | 380
24 | 0
25 | 410
26 | 530
27 |
28 |
29 |
30 | background-image: url(:/blue.png);
31 | border-radius:7px;padding:2px 4px;
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | 40
41 | 130
42 | 211
43 | 61
44 |
45 |
46 |
47 | font: 87 20pt "Arial Black";
48 |
49 |
50 | Login now
51 |
52 |
53 |
54 |
55 |
56 | 40
57 | 260
58 | 291
59 | 41
60 |
61 |
62 |
63 | background-color: rgb(247, 247, 247);
64 | border:1px groove gray;border-radius:
65 | 7px;padding:2px 4px;
66 | font: 10pt "Candara";
67 |
68 |
69 | QLineEdit::Password
70 |
71 |
72 | Please input your password
73 |
74 |
75 |
76 |
77 |
78 | 50
79 | 340
80 | 101
81 | 41
82 |
83 |
84 |
85 | background-color: qlineargradient(spread:pad, x1:0.52, y1:1, x2:0.54, y2:0, stop:0.0112994 rgba(64, 145, 252, 255), stop:1 rgba(255, 255, 255, 255));
86 | color: rgb(255, 255, 255);
87 |
88 | border:0px groove gray;border-radius:
89 | 7px;padding:2px 4px;
90 | font: 14pt "Candara";
91 |
92 |
93 | Sign in
94 |
95 |
96 |
97 |
98 |
99 | 40
100 | 210
101 | 291
102 | 41
103 |
104 |
105 |
106 | background-color: rgb(247, 247, 247);
107 | border:1px groove gray;border-radius:
108 | 7px;padding:2px 4px;
109 | font: 10pt "Candara";
110 |
111 |
112 |
113 |
114 |
115 | QLineEdit::Normal
116 |
117 |
118 | false
119 |
120 |
121 | Places input your Id
122 |
123 |
124 |
125 |
126 |
127 | 220
128 | 340
129 | 101
130 | 41
131 |
132 |
133 |
134 | background-color: qlineargradient(spread:pad, x1:0.52, y1:1, x2:0.54, y2:0, stop:0.0112994 rgba(64, 145, 252, 255), stop:1 rgba(255, 255, 255, 255));
135 | color: rgb(255, 255, 255);
136 |
137 | border:0px groove gray;border-radius:
138 | 7px;padding:2px 4px;
139 | font: 14pt "Candara";
140 |
141 |
142 | Sign up
143 |
144 |
145 |
146 |
147 |
148 | 40
149 | 20
150 | 131
151 | 21
152 |
153 |
154 |
155 | color: rgb(41, 155, 255);
156 | font: 10pt "Arial";
157 |
158 |
159 | Password Lock
160 |
161 |
162 |
163 |
164 |
165 | 740
166 | 10
167 | 34
168 | 34
169 |
170 |
171 |
172 | font: 75 10pt "Angsana New";
173 | background-image: url(:/exit.png);
174 | color: rgb(255, 255, 255);
175 |
176 |
177 |
178 |
179 |
180 | true
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
--------------------------------------------------------------------------------
/PasswordLock/signup.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | Signup
4 |
5 |
6 |
7 | 0
8 | 0
9 | 780
10 | 520
11 |
12 |
13 |
14 | Form
15 |
16 |
17 | background-color: rgb(255, 255, 255);
18 |
19 |
20 |
21 |
22 |
23 | 40
24 | 10
25 | 261
26 | 571
27 |
28 |
29 |
30 | background-image: url(:/girl1.png);
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 380
40 | 50
41 | 241
42 | 41
43 |
44 |
45 |
46 | font: 87 20pt "Arial Black";
47 |
48 |
49 | Hello
50 |
51 |
52 |
53 |
54 |
55 | 380
56 | 90
57 | 401
58 | 71
59 |
60 |
61 |
62 | font: 87 20pt "Arial Black";
63 |
64 |
65 | welcome to us!
66 |
67 |
68 |
69 |
70 |
71 | 380
72 | 210
73 | 281
74 | 31
75 |
76 |
77 |
78 |
79 |
80 |
81 | 380
82 | 280
83 | 281
84 | 31
85 |
86 |
87 |
88 | QLineEdit::Password
89 |
90 |
91 |
92 |
93 |
94 | 380
95 | 190
96 | 121
97 | 16
98 |
99 |
100 |
101 | font: 10pt "Arial";
102 |
103 |
104 | Username:
105 |
106 |
107 |
108 |
109 |
110 | 380
111 | 260
112 | 141
113 | 21
114 |
115 |
116 |
117 | font: 10pt "Arial";
118 |
119 |
120 | Password:
121 |
122 |
123 |
124 |
125 |
126 | 380
127 | 340
128 | 281
129 | 31
130 |
131 |
132 |
133 |
134 |
135 |
136 | QLineEdit::Password
137 |
138 |
139 |
140 |
141 |
142 | 380
143 | 320
144 | 191
145 | 16
146 |
147 |
148 |
149 | font: 10pt "Arial";
150 |
151 |
152 | Ensure your password:
153 |
154 |
155 |
156 |
157 |
158 | 380
159 | 400
160 | 281
161 | 41
162 |
163 |
164 |
165 | background-color: rgb(29, 123, 255);
166 | color: rgb(255, 255, 255);
167 |
168 |
169 | Sure
170 |
171 |
172 |
173 |
174 |
175 | 390
176 | 450
177 | 271
178 | 31
179 |
180 |
181 |
182 | color: rgb(29, 123, 255);
183 | font: 25 9pt "DIN Next LT Pro Light";
184 |
185 |
186 | Click there to Return login
187 |
188 |
189 | true
190 |
191 |
192 | label_5
193 | label
194 | label_2
195 | label_3
196 | lineEdit_newname
197 | lineEdit_newpass
198 | label_4
199 | lineEdit_surepass
200 | label_6
201 | btn_sureadd
202 | btn_return
203 |
204 |
205 |
206 |
207 |
--------------------------------------------------------------------------------
/Login/mainwindow.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindow
4 |
5 |
6 |
7 | 0
8 | 0
9 | 780
10 | 520
11 |
12 |
13 |
14 | MainWindow
15 |
16 |
17 | background-color: rgb(255, 255, 255);
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | 390
26 | 0
27 | 391
28 | 521
29 |
30 |
31 |
32 | border-radius:7px;padding:0px 0px;
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | 30
42 | 10
43 | 151
44 | 31
45 |
46 |
47 |
48 | color: rgb(41, 155, 255);
49 | font: 10pt "Arial";
50 |
51 |
52 | TaoDouDou
53 |
54 |
55 |
56 |
57 |
58 | 30
59 | 120
60 | 191
61 | 51
62 |
63 |
64 |
65 | font: 87 20pt "Arial Black";
66 |
67 |
68 | Login Now
69 |
70 |
71 |
72 |
73 |
74 | 50
75 | 340
76 | 251
77 | 71
78 |
79 |
80 |
81 | -
82 |
83 |
84 |
85 | 50
86 | 40
87 |
88 |
89 |
90 | background-color: qlineargradient(spread:pad, x1:0.52, y1:1, x2:0.54, y2:0,
91 | stop:0.0112994 rgba(64, 145, 252, 255),
92 | stop:1 rgba(255, 255, 255, 255));
93 | color: rgb(255, 255, 255);
94 |
95 | border:0px groove gray;border-radius:
96 | 7px;padding:2px 4px;
97 | font: 14pt "Candara";
98 |
99 |
100 | Sign in
101 |
102 |
103 |
104 | -
105 |
106 |
107 | Qt::Horizontal
108 |
109 |
110 |
111 | 40
112 | 20
113 |
114 |
115 |
116 |
117 | -
118 |
119 |
120 |
121 | 50
122 | 40
123 |
124 |
125 |
126 | background-color: qlineargradient(spread:pad, x1:0.52, y1:1, x2:0.54, y2:0,
127 | stop:0.0112994 rgba(64, 145, 252, 255),
128 | stop:1 rgba(255, 255, 255, 255));
129 | color: rgb(255, 255, 255);
130 |
131 | border:0px groove gray;border-radius:
132 | 7px;padding:2px 4px;
133 | font: 14pt "Candara";
134 |
135 |
136 | Sign up
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | 30
146 | 200
147 | 291
148 | 111
149 |
150 |
151 |
152 | -
153 |
154 |
155 |
156 | 0
157 | 45
158 |
159 |
160 |
161 | background-color: rgb(247, 247, 247);
162 | border:1px groove gray;border-radius:
163 | 7px;padding:2px 4px;
164 | font: 10pt "Candara";
165 |
166 |
167 | Places input your Id
168 |
169 |
170 |
171 | -
172 |
173 |
174 |
175 | 0
176 | 45
177 |
178 |
179 |
180 | background-color: rgb(247, 247, 247);
181 | border:1px groove gray;border-radius:
182 | 7px;padding:2px 4px;
183 | font: 10pt "Candara";
184 |
185 |
186 | QLineEdit::Password
187 |
188 |
189 | Please input your password
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
--------------------------------------------------------------------------------
/Login/Login.pro.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EnvironmentId
7 | {5f760f5b-78e2-4f3d-836d-72107cb4ae30}
8 |
9 |
10 | ProjectExplorer.Project.ActiveTarget
11 | 0
12 |
13 |
14 | ProjectExplorer.Project.EditorSettings
15 |
16 | true
17 | false
18 | true
19 |
20 | Cpp
21 |
22 | CppGlobal
23 |
24 |
25 |
26 | QmlJS
27 |
28 | QmlJSGlobal
29 |
30 |
31 | 2
32 | UTF-8
33 | false
34 | 4
35 | false
36 | 80
37 | true
38 | true
39 | 1
40 | true
41 | false
42 | 0
43 | true
44 | true
45 | 0
46 | 8
47 | true
48 | 1
49 | true
50 | true
51 | true
52 | false
53 |
54 |
55 |
56 | ProjectExplorer.Project.PluginSettings
57 |
58 |
59 | -fno-delayed-template-parsing
60 |
61 | true
62 |
63 |
64 |
65 | ProjectExplorer.Project.Target.0
66 |
67 | Desktop Qt 5.14.2 MinGW 64-bit
68 | Desktop Qt 5.14.2 MinGW 64-bit
69 | qt.qt5.5142.win64_mingw73_kit
70 | 0
71 | 0
72 | 0
73 |
74 | E:/Qt/Code/build-Login-Desktop_Qt_5_14_2_MinGW_64_bit-Debug
75 |
76 |
77 | true
78 | QtProjectManager.QMakeBuildStep
79 | true
80 |
81 | false
82 | false
83 | false
84 |
85 |
86 | true
87 | Qt4ProjectManager.MakeStep
88 |
89 | false
90 |
91 |
92 | false
93 |
94 | 2
95 | Build
96 | Build
97 | ProjectExplorer.BuildSteps.Build
98 |
99 |
100 |
101 | true
102 | Qt4ProjectManager.MakeStep
103 |
104 | true
105 | clean
106 |
107 | false
108 |
109 | 1
110 | Clean
111 | Clean
112 | ProjectExplorer.BuildSteps.Clean
113 |
114 | 2
115 | false
116 |
117 | Debug
118 | Qt4ProjectManager.Qt4BuildConfiguration
119 | 2
120 |
121 |
122 | E:/Qt/Code/build-Login-Desktop_Qt_5_14_2_MinGW_64_bit-Release
123 |
124 |
125 | true
126 | QtProjectManager.QMakeBuildStep
127 | false
128 |
129 | false
130 | false
131 | true
132 |
133 |
134 | true
135 | Qt4ProjectManager.MakeStep
136 |
137 | false
138 |
139 |
140 | false
141 |
142 | 2
143 | Build
144 | Build
145 | ProjectExplorer.BuildSteps.Build
146 |
147 |
148 |
149 | true
150 | Qt4ProjectManager.MakeStep
151 |
152 | true
153 | clean
154 |
155 | false
156 |
157 | 1
158 | Clean
159 | Clean
160 | ProjectExplorer.BuildSteps.Clean
161 |
162 | 2
163 | false
164 |
165 | Release
166 | Qt4ProjectManager.Qt4BuildConfiguration
167 | 0
168 |
169 |
170 | E:/Qt/Code/build-Login-Desktop_Qt_5_14_2_MinGW_64_bit-Profile
171 |
172 |
173 | true
174 | QtProjectManager.QMakeBuildStep
175 | true
176 |
177 | false
178 | true
179 | true
180 |
181 |
182 | true
183 | Qt4ProjectManager.MakeStep
184 |
185 | false
186 |
187 |
188 | false
189 |
190 | 2
191 | Build
192 | Build
193 | ProjectExplorer.BuildSteps.Build
194 |
195 |
196 |
197 | true
198 | Qt4ProjectManager.MakeStep
199 |
200 | true
201 | clean
202 |
203 | false
204 |
205 | 1
206 | Clean
207 | Clean
208 | ProjectExplorer.BuildSteps.Clean
209 |
210 | 2
211 | false
212 |
213 | Profile
214 | Qt4ProjectManager.Qt4BuildConfiguration
215 | 0
216 |
217 | 3
218 |
219 |
220 | 0
221 | Deploy
222 | Deploy
223 | ProjectExplorer.BuildSteps.Deploy
224 |
225 | 1
226 | ProjectExplorer.DefaultDeployConfiguration
227 |
228 | 1
229 |
230 |
231 | dwarf
232 |
233 | cpu-cycles
234 |
235 |
236 | 250
237 |
238 | -e
239 | cpu-cycles
240 | --call-graph
241 | dwarf,4096
242 | -F
243 | 250
244 |
245 | -F
246 | true
247 | 4096
248 | false
249 | false
250 | 1000
251 |
252 | true
253 |
254 | false
255 | false
256 | false
257 | false
258 | true
259 | 0.01
260 | 10
261 | true
262 | kcachegrind
263 | 1
264 | 25
265 |
266 | 1
267 | true
268 | false
269 | true
270 | valgrind
271 |
272 | 0
273 | 1
274 | 2
275 | 3
276 | 4
277 | 5
278 | 6
279 | 7
280 | 8
281 | 9
282 | 10
283 | 11
284 | 12
285 | 13
286 | 14
287 |
288 | 2
289 |
290 | Qt4ProjectManager.Qt4RunConfiguration:E:/Qt/Code/Login/Login.pro
291 | E:/Qt/Code/Login/Login.pro
292 |
293 | false
294 |
295 | false
296 | true
297 | true
298 | false
299 | false
300 | true
301 |
302 | E:/Qt/Code/build-Login-Desktop_Qt_5_14_2_MinGW_64_bit-Debug
303 |
304 | 1
305 |
306 |
307 |
308 | ProjectExplorer.Project.TargetCount
309 | 1
310 |
311 |
312 | ProjectExplorer.Project.Updater.FileVersion
313 | 22
314 |
315 |
316 | Version
317 | 22
318 |
319 |
320 |
--------------------------------------------------------------------------------
/PasswordLock/PasswordLock.pro.user.9ed77c1.22:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EnvironmentId
7 | {9ed77c1d-76c6-4166-b25e-4ff719e4e6cc}
8 |
9 |
10 | ProjectExplorer.Project.ActiveTarget
11 | 0
12 |
13 |
14 | ProjectExplorer.Project.EditorSettings
15 |
16 | true
17 | false
18 | true
19 |
20 | Cpp
21 |
22 | CppGlobal
23 |
24 |
25 |
26 | QmlJS
27 |
28 | QmlJSGlobal
29 |
30 |
31 | 2
32 | UTF-8
33 | false
34 | 4
35 | false
36 | 80
37 | true
38 | true
39 | 1
40 | true
41 | false
42 | 0
43 | true
44 | true
45 | 0
46 | 8
47 | true
48 | 1
49 | true
50 | true
51 | true
52 | false
53 |
54 |
55 |
56 | ProjectExplorer.Project.PluginSettings
57 |
58 |
59 | -fno-delayed-template-parsing
60 |
61 | true
62 |
63 |
64 |
65 | ProjectExplorer.Project.Target.0
66 |
67 | Desktop Qt 5.14.2 MinGW 64-bit
68 | Desktop Qt 5.14.2 MinGW 64-bit
69 | qt.qt5.5142.win64_mingw73_kit
70 | 0
71 | 0
72 | 0
73 |
74 | D:/Qt/project/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Debug
75 |
76 |
77 | true
78 | QtProjectManager.QMakeBuildStep
79 | true
80 |
81 | false
82 | false
83 | false
84 |
85 |
86 | true
87 | Qt4ProjectManager.MakeStep
88 |
89 | false
90 |
91 |
92 | false
93 |
94 | 2
95 | Build
96 | Build
97 | ProjectExplorer.BuildSteps.Build
98 |
99 |
100 |
101 | true
102 | Qt4ProjectManager.MakeStep
103 |
104 | true
105 | clean
106 |
107 | false
108 |
109 | 1
110 | Clean
111 | Clean
112 | ProjectExplorer.BuildSteps.Clean
113 |
114 | 2
115 | false
116 |
117 | Debug
118 | Qt4ProjectManager.Qt4BuildConfiguration
119 | 2
120 |
121 |
122 | D:/Qt/project/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Release
123 |
124 |
125 | true
126 | QtProjectManager.QMakeBuildStep
127 | false
128 |
129 | false
130 | false
131 | true
132 |
133 |
134 | true
135 | Qt4ProjectManager.MakeStep
136 |
137 | false
138 |
139 |
140 | false
141 |
142 | 2
143 | Build
144 | Build
145 | ProjectExplorer.BuildSteps.Build
146 |
147 |
148 |
149 | true
150 | Qt4ProjectManager.MakeStep
151 |
152 | true
153 | clean
154 |
155 | false
156 |
157 | 1
158 | Clean
159 | Clean
160 | ProjectExplorer.BuildSteps.Clean
161 |
162 | 2
163 | false
164 |
165 | Release
166 | Qt4ProjectManager.Qt4BuildConfiguration
167 | 0
168 |
169 |
170 | D:/Qt/project/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Profile
171 |
172 |
173 | true
174 | QtProjectManager.QMakeBuildStep
175 | true
176 |
177 | false
178 | true
179 | true
180 |
181 |
182 | true
183 | Qt4ProjectManager.MakeStep
184 |
185 | false
186 |
187 |
188 | false
189 |
190 | 2
191 | Build
192 | Build
193 | ProjectExplorer.BuildSteps.Build
194 |
195 |
196 |
197 | true
198 | Qt4ProjectManager.MakeStep
199 |
200 | true
201 | clean
202 |
203 | false
204 |
205 | 1
206 | Clean
207 | Clean
208 | ProjectExplorer.BuildSteps.Clean
209 |
210 | 2
211 | false
212 |
213 | Profile
214 | Qt4ProjectManager.Qt4BuildConfiguration
215 | 0
216 |
217 | 3
218 |
219 |
220 | 0
221 | Deploy
222 | Deploy
223 | ProjectExplorer.BuildSteps.Deploy
224 |
225 | 1
226 | ProjectExplorer.DefaultDeployConfiguration
227 |
228 | 1
229 |
230 |
231 | dwarf
232 |
233 | cpu-cycles
234 |
235 |
236 | 250
237 |
238 | -e
239 | cpu-cycles
240 | --call-graph
241 | dwarf,4096
242 | -F
243 | 250
244 |
245 | -F
246 | true
247 | 4096
248 | false
249 | false
250 | 1000
251 |
252 | true
253 |
254 | false
255 | false
256 | false
257 | false
258 | true
259 | 0.01
260 | 10
261 | true
262 | kcachegrind
263 | 1
264 | 25
265 |
266 | 1
267 | true
268 | false
269 | true
270 | valgrind
271 |
272 | 0
273 | 1
274 | 2
275 | 3
276 | 4
277 | 5
278 | 6
279 | 7
280 | 8
281 | 9
282 | 10
283 | 11
284 | 12
285 | 13
286 | 14
287 |
288 | 2
289 |
290 | Qt4ProjectManager.Qt4RunConfiguration:D:/Qt/project/PasswordLock/PasswordLock.pro
291 | D:/Qt/project/PasswordLock/PasswordLock.pro
292 |
293 | false
294 |
295 | false
296 | true
297 | true
298 | false
299 | false
300 | true
301 |
302 | D:/Qt/project/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Debug
303 |
304 | 1
305 |
306 |
307 |
308 | ProjectExplorer.Project.TargetCount
309 | 1
310 |
311 |
312 | ProjectExplorer.Project.Updater.FileVersion
313 | 22
314 |
315 |
316 | Version
317 | 22
318 |
319 |
320 |
--------------------------------------------------------------------------------
/PasswordLock/PasswordLock.pro.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EnvironmentId
7 | {5f760f5b-78e2-4f3d-836d-72107cb4ae30}
8 |
9 |
10 | ProjectExplorer.Project.ActiveTarget
11 | 0
12 |
13 |
14 | ProjectExplorer.Project.EditorSettings
15 |
16 | true
17 | false
18 | true
19 |
20 | Cpp
21 |
22 | CppGlobal
23 |
24 |
25 |
26 | QmlJS
27 |
28 | QmlJSGlobal
29 |
30 |
31 | 2
32 | UTF-8
33 | false
34 | 4
35 | false
36 | 80
37 | true
38 | true
39 | 1
40 | true
41 | false
42 | 0
43 | true
44 | true
45 | 0
46 | 8
47 | true
48 | 1
49 | true
50 | true
51 | true
52 | false
53 |
54 |
55 |
56 | ProjectExplorer.Project.PluginSettings
57 |
58 |
59 | -fno-delayed-template-parsing
60 |
61 | true
62 |
63 |
64 |
65 | ProjectExplorer.Project.Target.0
66 |
67 | Desktop Qt 5.14.2 MinGW 64-bit
68 | Desktop Qt 5.14.2 MinGW 64-bit
69 | qt.qt5.5142.win64_mingw73_kit
70 | 0
71 | 0
72 | 0
73 |
74 | C:/Users/My/Desktop/Subject/Junior second/Qt&Linux/PasswordLock/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Debug
75 |
76 |
77 | true
78 | QtProjectManager.QMakeBuildStep
79 | true
80 |
81 | false
82 | false
83 | false
84 |
85 |
86 | true
87 | Qt4ProjectManager.MakeStep
88 |
89 | false
90 |
91 |
92 | false
93 |
94 | 2
95 | Build
96 | Build
97 | ProjectExplorer.BuildSteps.Build
98 |
99 |
100 |
101 | true
102 | Qt4ProjectManager.MakeStep
103 |
104 | true
105 | clean
106 |
107 | false
108 |
109 | 1
110 | Clean
111 | Clean
112 | ProjectExplorer.BuildSteps.Clean
113 |
114 | 2
115 | false
116 |
117 | Debug
118 | Qt4ProjectManager.Qt4BuildConfiguration
119 | 2
120 |
121 |
122 | C:/Users/My/Desktop/Subject/Junior second/Qt&Linux/PasswordLock/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Release
123 |
124 |
125 | true
126 | QtProjectManager.QMakeBuildStep
127 | false
128 |
129 | false
130 | false
131 | true
132 |
133 |
134 | true
135 | Qt4ProjectManager.MakeStep
136 |
137 | false
138 |
139 |
140 | false
141 |
142 | 2
143 | Build
144 | Build
145 | ProjectExplorer.BuildSteps.Build
146 |
147 |
148 |
149 | true
150 | Qt4ProjectManager.MakeStep
151 |
152 | true
153 | clean
154 |
155 | false
156 |
157 | 1
158 | Clean
159 | Clean
160 | ProjectExplorer.BuildSteps.Clean
161 |
162 | 2
163 | false
164 |
165 | Release
166 | Qt4ProjectManager.Qt4BuildConfiguration
167 | 0
168 |
169 |
170 | C:/Users/My/Desktop/Subject/Junior second/Qt&Linux/PasswordLock/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Profile
171 |
172 |
173 | true
174 | QtProjectManager.QMakeBuildStep
175 | true
176 |
177 | false
178 | true
179 | true
180 |
181 |
182 | true
183 | Qt4ProjectManager.MakeStep
184 |
185 | false
186 |
187 |
188 | false
189 |
190 | 2
191 | Build
192 | Build
193 | ProjectExplorer.BuildSteps.Build
194 |
195 |
196 |
197 | true
198 | Qt4ProjectManager.MakeStep
199 |
200 | true
201 | clean
202 |
203 | false
204 |
205 | 1
206 | Clean
207 | Clean
208 | ProjectExplorer.BuildSteps.Clean
209 |
210 | 2
211 | false
212 |
213 | Profile
214 | Qt4ProjectManager.Qt4BuildConfiguration
215 | 0
216 |
217 | 3
218 |
219 |
220 | 0
221 | Deploy
222 | Deploy
223 | ProjectExplorer.BuildSteps.Deploy
224 |
225 | 1
226 | ProjectExplorer.DefaultDeployConfiguration
227 |
228 | 1
229 |
230 |
231 | dwarf
232 |
233 | cpu-cycles
234 |
235 |
236 | 250
237 |
238 | -e
239 | cpu-cycles
240 | --call-graph
241 | dwarf,4096
242 | -F
243 | 250
244 |
245 | -F
246 | true
247 | 4096
248 | false
249 | false
250 | 1000
251 |
252 | true
253 |
254 | false
255 | false
256 | false
257 | false
258 | true
259 | 0.01
260 | 10
261 | true
262 | kcachegrind
263 | 1
264 | 25
265 |
266 | 1
267 | true
268 | false
269 | true
270 | valgrind
271 |
272 | 0
273 | 1
274 | 2
275 | 3
276 | 4
277 | 5
278 | 6
279 | 7
280 | 8
281 | 9
282 | 10
283 | 11
284 | 12
285 | 13
286 | 14
287 |
288 | 2
289 |
290 | Qt4ProjectManager.Qt4RunConfiguration:C:/Users/My/Desktop/Subject/Junior second/Qt&Linux/PasswordLock/PasswordLock/PasswordLock.pro
291 | C:/Users/My/Desktop/Subject/Junior second/Qt&Linux/PasswordLock/PasswordLock/PasswordLock.pro
292 |
293 | false
294 |
295 | false
296 | true
297 | true
298 | false
299 | false
300 | true
301 |
302 | C:/Users/My/Desktop/Subject/Junior second/Qt&Linux/PasswordLock/build-PasswordLock-Desktop_Qt_5_14_2_MinGW_64_bit-Debug
303 |
304 | 1
305 |
306 |
307 |
308 | ProjectExplorer.Project.TargetCount
309 | 1
310 |
311 |
312 | ProjectExplorer.Project.Updater.FileVersion
313 | 22
314 |
315 |
316 | Version
317 | 22
318 |
319 |
320 |
--------------------------------------------------------------------------------
/PasswordLock/PasswordLock.pro.user.66165d9.4.9-pre1:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EnvironmentId
7 | {66165d98-c670-4fb7-8d60-b3e954ff7ca1}
8 |
9 |
10 | ProjectExplorer.Project.ActiveTarget
11 | 0
12 |
13 |
14 | ProjectExplorer.Project.EditorSettings
15 |
16 | true
17 | false
18 | true
19 |
20 | Cpp
21 |
22 | CppGlobal
23 |
24 |
25 |
26 | QmlJS
27 |
28 | QmlJSGlobal
29 |
30 |
31 | 2
32 | UTF-8
33 | false
34 | 4
35 | false
36 | 80
37 | true
38 | true
39 | 1
40 | true
41 | false
42 | 0
43 | true
44 | true
45 | 0
46 | 8
47 | true
48 | 1
49 | true
50 | true
51 | true
52 | false
53 |
54 |
55 |
56 | ProjectExplorer.Project.PluginSettings
57 |
58 |
59 | -fno-delayed-template-parsing
60 |
61 | true
62 |
63 |
64 |
65 | ProjectExplorer.Project.Target.0
66 |
67 | Desktop Qt 5.12.1 MinGW 64-bit
68 | Desktop Qt 5.12.1 MinGW 64-bit
69 | qt.qt5.5121.win64_mingw73_kit
70 | 0
71 | 0
72 | 0
73 |
74 | C:/Users/hp/Documents/build-PasswordLock-Desktop_Qt_5_12_1_MinGW_64_bit-Debug
75 |
76 |
77 | true
78 | qmake
79 |
80 | QtProjectManager.QMakeBuildStep
81 | true
82 |
83 | false
84 | false
85 | false
86 |
87 |
88 | true
89 | Make
90 |
91 | Qt4ProjectManager.MakeStep
92 |
93 | false
94 |
95 |
96 | false
97 |
98 | 2
99 | Build
100 |
101 | ProjectExplorer.BuildSteps.Build
102 |
103 |
104 |
105 | true
106 | Make
107 |
108 | Qt4ProjectManager.MakeStep
109 |
110 | true
111 | clean
112 |
113 | false
114 |
115 | 1
116 | Clean
117 |
118 | ProjectExplorer.BuildSteps.Clean
119 |
120 | 2
121 | false
122 |
123 | Debug
124 | Debug
125 | Qt4ProjectManager.Qt4BuildConfiguration
126 | 2
127 | true
128 |
129 |
130 | C:/Users/hp/Documents/build-PasswordLock-Desktop_Qt_5_12_1_MinGW_64_bit-Release
131 |
132 |
133 | true
134 | qmake
135 |
136 | QtProjectManager.QMakeBuildStep
137 | false
138 |
139 | false
140 | false
141 | true
142 |
143 |
144 | true
145 | Make
146 |
147 | Qt4ProjectManager.MakeStep
148 |
149 | false
150 |
151 |
152 | false
153 |
154 | 2
155 | Build
156 |
157 | ProjectExplorer.BuildSteps.Build
158 |
159 |
160 |
161 | true
162 | Make
163 |
164 | Qt4ProjectManager.MakeStep
165 |
166 | true
167 | clean
168 |
169 | false
170 |
171 | 1
172 | Clean
173 |
174 | ProjectExplorer.BuildSteps.Clean
175 |
176 | 2
177 | false
178 |
179 | Release
180 | Release
181 | Qt4ProjectManager.Qt4BuildConfiguration
182 | 0
183 | true
184 |
185 |
186 | C:/Users/hp/Documents/build-PasswordLock-Desktop_Qt_5_12_1_MinGW_64_bit-Profile
187 |
188 |
189 | true
190 | qmake
191 |
192 | QtProjectManager.QMakeBuildStep
193 | true
194 |
195 | false
196 | true
197 | true
198 |
199 |
200 | true
201 | Make
202 |
203 | Qt4ProjectManager.MakeStep
204 |
205 | false
206 |
207 |
208 | false
209 |
210 | 2
211 | Build
212 |
213 | ProjectExplorer.BuildSteps.Build
214 |
215 |
216 |
217 | true
218 | Make
219 |
220 | Qt4ProjectManager.MakeStep
221 |
222 | true
223 | clean
224 |
225 | false
226 |
227 | 1
228 | Clean
229 |
230 | ProjectExplorer.BuildSteps.Clean
231 |
232 | 2
233 | false
234 |
235 | Profile
236 | Profile
237 | Qt4ProjectManager.Qt4BuildConfiguration
238 | 0
239 | true
240 |
241 | 3
242 |
243 |
244 | 0
245 | 部署
246 |
247 | ProjectExplorer.BuildSteps.Deploy
248 |
249 | 1
250 | Deploy Configuration
251 |
252 | ProjectExplorer.DefaultDeployConfiguration
253 |
254 | 1
255 |
256 |
257 | false
258 | false
259 | 1000
260 |
261 | true
262 |
263 | false
264 | false
265 | false
266 | false
267 | true
268 | 0.01
269 | 10
270 | true
271 | 1
272 | 25
273 |
274 | 1
275 | true
276 | false
277 | true
278 | valgrind
279 |
280 | 0
281 | 1
282 | 2
283 | 3
284 | 4
285 | 5
286 | 6
287 | 7
288 | 8
289 | 9
290 | 10
291 | 11
292 | 12
293 | 13
294 | 14
295 |
296 | 2
297 |
298 | PasswordLock
299 |
300 | Qt4ProjectManager.Qt4RunConfiguration:C:/Users/hp/Documents/PasswordLock/PasswordLock.pro
301 | PasswordLock.pro
302 |
303 | 3768
304 | false
305 | true
306 | true
307 | false
308 | false
309 | true
310 |
311 | C:/Users/hp/Documents/build-PasswordLock-Desktop_Qt_5_12_1_MinGW_64_bit-Debug
312 |
313 | 1
314 |
315 |
316 |
317 | ProjectExplorer.Project.TargetCount
318 | 1
319 |
320 |
321 | ProjectExplorer.Project.Updater.FileVersion
322 | 20
323 |
324 |
325 | Version
326 | 20
327 |
328 |
329 |
--------------------------------------------------------------------------------