# window display problem

**URL:** <https://discourse.slicer.org/t/window-display-problem/24927>\
**Category:** Support\
**Created:** [August 25, 2022, 8:29pm UTC](https://discourse.slicer.org/t/window-display-problem/24927 "2022-08-25T20:29:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yang](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yang](https://discourse.slicer.org/u/yang)\
**Post date:** [August 25, 2022, 8:29pm UTC](https://discourse.slicer.org/t/window-display-problem/24927/1 "2022-08-25T20:29:53Z")

</div>

Operating system: win10  
Slicer version: 4.11

Expected behavior:  
I opened the main window of the slicer in full screen, but when I clicked the button, the pop-up dialog was displayed behind the main window. I thought it was a problem with my own code, I created a small demo, simulated it with the same code, clicked the button and the popup appeared above the main window. So far, my code is fine, but I can’t figure out why.

void qSlicerMainWindowPrivate::init()  
{  
Q\_Q(qSlicerMainWindow);  
this-\>setupUi(q);

q-\>setWindowFlags(Qt::FramelessWindowHint);  
q-\>setFixedSize(QSize(1920, 1080));

//this-\>setupStatusBar();  
//q-\>setupMenuActions();  
//this-\>StartupState = q-\>saveState();  
//this-\>readSettings();  
}

Actual behavior:  
Click the button, a dialog box will pop up on the main window
