看腻了QT俗气的界面,心里总想做个漂亮点的,于是捣腾了这么个小东西(上图...)
class Login : public QDialog
{
Q_OBJECT
public:
explicit Login(QWidget *parent = 0);
~Login();
private:
Ui::Login *ui;
QPoint dragVector; //鼠标拖动起始坐标
void initBackground();
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void closeEvent(QCloseEvent *event);
private slots:
void on_exit_clicked(); //退出按钮槽函数
void on_minimum_clicked(); //最小化按钮槽函数
void on_more_clicked(); //“更多'按钮槽函数
void on_login_clicked();