记录下自己的过程,以备以后需要20170916
//设置无边框、背景透明(使得边框阴影背景不为窗口背景)
setWindowFlags(Qt::FramelessWindowHint);
setAttribute(Qt::WA_TranslucentBackground);
//设置用户名密码输入框格式>
ui->lineEdit->setPlaceholderText("用户名");//grey tips
ui->lineEdit_2->setPlaceholderText("密码");//grey tips
ui->lineEdit_2->setEchoMode(QLineEdit::Password); // let password display like"****"