frame = new QFrame(parent); frame->setWindowFlags(Qt::SplashScreen); frame->setFrameShape(QFrame::StyledPanel); frame->setFrameShadow(QFrame::Raised); frame->setMinimumSize(QSize(200, 200));
myWidget *tmp = new myWidget(parent);tmp->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint);tmp->setGeometry(QCursor::pos().x(), QCursor::pos().y(), tmp->width(), tmp->height());tmp->setFrameStyle(QFrame::Panel | QFrame::Raised);tmp->setLineWidth(2);tmp->show();
QApplication::setActiveWindow(this);
setFocusProxy(ui->spinBox);