标签:com http blog style img c log t size sp ext
QPoint dragPosition;
void MainWindow::mousePressEvent(QMouseEvent *event)
{
if(event->button()==Qt::LeftButton)
{
dragPosition=event->globalPos()-frameGeometry().topLeft();
event->accept();
}
}
void MainWindow::mouseMoveEvent(QMouseEvent *event)
{
if(event->buttons()&&Qt::LeftButton)
{
move(event->globalPos()-dragPosition);
event->accept();
}
}
setStyleSheet("QProgressBar{border:none;background:rgb(210,225,240);border-radius:3px;text-align:center;}QProgressBar::chunk{background:rgb(60,140,220);border-radius:3px;}");
标签:com http blog style img c log t size sp ext
原文地址:http://www.cnblogs.com/lzh-Linux/p/3702093.html