Results 1 to 6 of 6

Thread: Grey out background windows while editing a dialog.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Grey out background windows while editing a dialog.

    One possible way could be an event filter.
    E.g. implement the eventFilter method in your main window and install it as an even filter on the QApplication object.

    In the filter function check for show and hide events. if the object passed to the filter function inherits from QDialog, show/hide the "cover" widget accordingly.

    I guess you want to support Windows XP, which doesn't have that kind of effect, right?

    Cheers,
    _

  2. #2
    Join Date
    Mar 2014
    Posts
    5
    Thanks
    2

    Default Re: Grey out background windows while editing a dialog.

    Hmm, that is a nice idea.

    The XP is one of the target plattforms, however, it would be not so bad, if it does not work on xp.

    Thanx

  3. #3
    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: Grey out background windows while editing a dialog.

    I was mentioning XP because I think this is the only desktop platform which does not use compositing effects.
    All of the more modern platforms have these kinds of effects built-in, so adding something manually might actually interfere.

    Cheers,
    _

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

    Yevgen (5th March 2014)

Similar Threads

  1. Double Buffering on QGLWidget - Background always grey
    By StarShaper in forum Qt Programming
    Replies: 0
    Last Post: 31st March 2012, 16:35
  2. Dialog remains in background.
    By vjsharma_30 in forum Qt Programming
    Replies: 4
    Last Post: 15th March 2010, 22:12
  3. Dialog Background Color using Hand Code
    By augusbas in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2009, 08:30
  4. code become grey
    By weixj2003ld in forum Qt Programming
    Replies: 3
    Last Post: 16th April 2009, 14:44
  5. How to dim / blur the background dialog?
    By german@it-missions.com in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2009, 07:40

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.