15 setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog);
16 setAttribute(Qt::WA_TranslucentBackground);
18 splashTimer.setInterval(50);
19 splashTimer.setSingleShot(
false);
20 connect(&splashTimer,
SIGNAL(timeout()),
this,SLOT(onSplashTimer()),Qt::DirectConnection);
41 QWidget *w =((QWidget*)parent());
42 int x = w->x() + ((w->width() - width()) / 2);
43 int y = w->y() + ((w->height() - height()) / 2);
44 this->setGeometry(x,y,width(),height());