Results 1 to 5 of 5

Thread: Dialog makes its parent lost FullScreen

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default 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 !!

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default 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.

  3. #3
    Join Date
    Jul 2010
    Location
    Ahmedabad,Gujarat,India
    Posts
    25
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default 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

  4. The following user says thank you to pavanbarot for this useful post:

    alizadeh91 (21st March 2012)

  5. #4
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default 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

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Showing a message dialog from an application running in fullscreen
    By AndresBarbaRoja in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2012, 18:55
  2. How to access objects of parent Dialog from Child Dialog .
    By ranjit.kadam in forum Qt Programming
    Replies: 4
    Last Post: 18th April 2011, 06:39
  3. closing child dialog closes parent dialog
    By sparticus_37 in forum Newbie
    Replies: 2
    Last Post: 28th May 2010, 19:46
  4. How to blur parent dialog when child dialog is displayed
    By abhilashajha in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2009, 13:01
  5. I need to send a message to parent dialog
    By santhoshv84 in forum Qt Programming
    Replies: 1
    Last Post: 3rd July 2008, 11:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.