C++ (Qt)setWindowFlags(Qt::Popup);
C++ (Qt)class THelpDialog:public QWidget{public: THelpDialog(int sizex, int sizey); ~THelpDialog(void); ...}; THelpDialog::THelpDialog(int sizex, int sizey){ this->setWindowFlags(Qt::Popup); ...}; class TPlayWindow:public QMainWindow{public: TPlayWindow(int sizex, int sizey); ~TPlayWindow(void);private: QMdiArea *mdiarea;}; TPlayWindow::TPlayWindow(int sizex, int sizey){ this->setFixedWidth(sizex); this->setFixedHeight(sizey); mdiarea=new QMdiArea(); this->setCentralWidget(mdiarea); THelpDialog *helpdialog=new THelpDialog(0.8*this->width(),1.0/26*this->height()); mdiarea->addSubWindow(helpdialog,Qt::Popup); }
C++ (Qt)mdiarea->addSubWindow(helpdialog,Qt::Popup)->setWindowFlags(Qt::Popup);
mdiarea->addSubWindow(helpdialog,Qt::Popup)->setWindowFlags(Qt::Popup);
C++ (Qt)class TPlayWindow:public QMainWindow{public: TPlayWindow(int sizex, int sizey); ~TPlayWindow(void);private: QWorkspace *workspace;}; TPlayWindow::TPlayWindow(int sizex, int sizey){ this->setFixedWidth(sizex); this->setFixedHeight(sizey); workspace=new QWorkspace(); this->setCentralWidget(workspace); THelpDialog *helpdialog=new THelpDialog(0.8*this->width(),1.0/26*this->height()); workspace->addWindow(helpdialog,Qt::Popup)->setWindowFlags(Qt::Popup); }
C++ (Qt)QWorkspace *workspace = new QWorkspace;workspace->addWindow(new QWidget, Qt::Widget | Qt::CustomizeWindowHint);setCentralWidget(workspace);
workspace->addWindow(new QWidget, Qt::Widget | Qt::CustomizeWindowHint | Qt::FramelessWindowHint);