一、窗口控件 窗口分为三种:普通窗口、无边框窗口以及顶层窗口(顶层窗口永远在最上面) //普通窗口 QWidget *widget = new QWidget(nullptr,Qt::Tool|Qt::WindowCloseButtonHint|Qt::WindowMaximizeButtonHint); widget->setWindowTitle(QStringLiteral("widget窗口")); widget->show(); //无边框 QWidget *widget1 = new QWidget(nullptr, Qt::FramelessWindowHint); widget1->show(); //作为顶层窗口出现 QWidget *widget2 = new QWidget(nullptr,Qt::Dialog| Qt::WindowStaysOnTopHint); widget2->setWindowTitle("top widget"); widget2->show(); 1、模态对话框和非模态对话框...