Results 1 to 2 of 2

Thread: Highlighting modal dialogs

  1. #1
    Join Date
    Dec 2009
    Posts
    24
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Highlighting modal dialogs

    Hello,
    What I observe frequently from users using my application is that they miss very often the presence of modal dialog (the common setup is 2x30inches screen)...and wonder why the application stopped working.
    So I was wondering if there is a way to highlight the modal window by darkening at least the rest of the application for example (a bit like in Windows 7 for security pop-ups)?

    Thanks.

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

    Default Re: Highlighting modal dialogs

    This kind of highlighting is usually done by the window system in order to have it consistent between applications.
    As you arlready said Windows 7 does it by fading the parent window out, Linux desktops have similar effects, no idea about OS X.

    If you are on a system that isn't capable of doing that, you could change the style sheet on the window that opened the dialog or create a widget that is on top of the window's content and semi transparent, etc.

    A different approach might be to move the dialog to a position close to the mouse cursor, etc

    Cheers,
    _

Similar Threads

  1. Testing modal dialogs with QTestLib
    By bitflyer in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2013, 15:34
  2. Using QtScript to interact with blocking modal dialogs
    By divad12 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2011, 08:40
  3. modal QWidget
    By lucasbemo in forum Newbie
    Replies: 4
    Last Post: 16th December 2010, 13:54
  4. Creating modal dialogs
    By Luc4 in forum Qt Programming
    Replies: 8
    Last Post: 17th June 2010, 10:35
  5. screen number and modal dialogs
    By high_flyer in forum Qt Programming
    Replies: 18
    Last Post: 22nd June 2007, 18:48

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.