Results 1 to 6 of 6

Thread: Problem with QDialog modality

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 14 Times in 14 Posts

    Default Re: Problem with QDialog modality

    Quote Originally Posted by anda_skoa View Post
    None of these are interactions with the window's content or, depending on the platform, even with the window itself, but the window decoration provided by the windowing system.

    It is more like paint events also still being processed in the parent (so it can update itself properly) despite a modal child window.

    Cheers,
    _
    Little messy, But when we set Modality for child window, parent should not get minimized or maximized right ??
    Thanks :-)

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Problem with QDialog modality

    Quote Originally Posted by prasad_N View Post
    Little messy, But when we set Modality for child window, parent should not get minimized or maximized right ??
    Modality prevents the parent window or application (depending on the mode) from receiving user events, such as key presses or mouse events.
    Resize events (like paint events or timer events) are generated by the system, thus are not affected by modality.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    prasad_N (31st August 2015)

Similar Threads

  1. Dialog Modality - Tutorial Needed
    By Michael Druckenmiller Sr in forum Newbie
    Replies: 5
    Last Post: 13th October 2011, 20:39
  2. workaround for messagebox modality bug
    By mortoray in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2010, 12:07
  3. Problem with QDialog
    By sudheer168 in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2009, 13:26
  4. Window Modality question
    By zgulser in forum Qt Programming
    Replies: 11
    Last Post: 25th May 2009, 12:44
  5. mainwindow modality
    By user in forum Qt Programming
    Replies: 0
    Last Post: 11th July 2008, 01:54

Tags for this Thread

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.