Greetings. There is an application on Qt 5 using DirectX 11. He now has one viewport, there should be four. When starting, the application is expanded to full screen and registers the size of the windows (creates drawing surfaces). There are difficulties with resizing viewports, so they are all rigidly fixed - four viewports with equal sizes or one, dimensions cannot be changed. For this, the application is deployed to the full screen and the possibility of minimizing it to the window is removed. I found that the usual screen for 22-24 inches will be enough for the user (and there are screens and more). Suppose a user, like me, has a laptop and an external screen. Then he can drag the window to another screen, the consequences will be sad - the application will collapse into the window (despite the fact that I forbade it), the user will not be able to turn it back (I have forbidden), and I will have difficulties with turning around - these two workers The tables can be on different video cards, so it’s unclear what will be with the resources and cannot be returned. The use of other screens must be temporarily disabled. How to do it? Checked this way:
void Vesta::RevertMyScreen(QScreen *screen) { windowHandle()->setScreen(MyScreen); windowHandle()->showFullScreen(); } and it got even worse: the window goes into the wrong state, from which you can get out just by restarting ...
setWindowState(Qt::WindowMaximized); setWindowFlags(Qt::Window | Qt::FramelessWindowHint);setWindowState(Qt::WindowMaximized); setWindowFlags(Qt::Window | Qt::FramelessWindowHint);. After that, the title bar with the application name, icon and control buttons will disappear. To drag on other screens will be impossible - what you need. The only gag is that you cannot minimize it to the taskbar, but I will deal with this later. - Ilia Ivanov