Dialog makes its parent lost FullScreen
Hi all !
I have a MainWindow with FullScreen, then I show a Dialog over the MainWindow. At that time MainWindow will be lost FullScreen.
Can someone help me solve this problem. I want to show Dialog and MainWindow still FullScreen.
Thank for your help !!
Re: Dialog makes its parent lost FullScreen
You're doing something wrong inside the dialog or where you show it.
You don't even mention what os and/or qt version you're using. No one here is a mind reader...
You can't expect constructive help without posting any code or - event better - compilable example of your issue.
Re: Dialog makes its parent lost FullScreen
Hello alizadeh91,
i think dialog is also derived from QMainwindow? use QDialog instead of QMainwindow.
Did i give your answer?
sorry my first language is not English.
Regards,
Pavan
Re: Dialog makes its parent lost FullScreen
For example when i show a QmessageBox in a QmainWindow the mainwindow will lost its fullscreen(To menu of ubuntu will be appears). My os in Ubuntu.
Thanks :D
Re: Dialog makes its parent lost FullScreen
If one window is full screen then no other window can come on top of it. Since a dialog forces its way to the top, the original window loses its fullscreen status. Be aware that X11 knows no concept of full screen windows and this is emulated in the application framework.