Qt Splash样式的登录窗实现
目录
0 结果

1. 设计界面
继承自QDialog,图片使用QLabel加载,windowFlag样式为 Qt::SplashScreen
TLoginForm::TLoginForm(QWidget *parent)
: QDialog(parent)
, ui(new Ui::TLoginForm)
{
ui->setupUi(this);
this->setAttribute(Qt::WA_DeleteOnClose);
this->setWindowFlag(Qt::SplashScreen);
QApplication::setOrganizationName("CC");
QApplication::setApplicationName("CC_SPLAN");
readSettings();//读取配置
}

2.鼠标拖动界面
涉及到3个事件 mousePressEvent、mouseMoveEvent

最低0.47元/天 解锁文章
429

被折叠的 条评论
为什么被折叠?



