Results 1 to 2 of 2

Thread: workaround for messagebox modality bug

  1. #1
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question workaround for messagebox modality bug

    Is there a quick way to set the modality of all QMessageBox objects? The docs say WindowsModal is the default with a parent, but in testing this appears not to be correct -- they are always ApplicationModal. I need to call setModality every time -- which is a bit inconvenient since I can't use the "question",etc. static members then.

  2. #2
    Join Date
    Jan 2008
    Location
    Davao City, Philippines
    Posts
    77
    Thanks
    16
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: workaround for messagebox modality bug

    Quote Originally Posted by mortoray View Post
    Is there a quick way to set the modality of all QMessageBox objects?
    Sure, write your own Class, let it inherit from QMessageBox and then use something like MessageBox instead QMessageBox.
    DavaoSOFT, the home of ERPel
    ERPel, das deutsche Warenwirtschaftssystem fuer LINUX
    http://www.davaosoft.com

Similar Threads

  1. Workaround for a Qt ui bug
    By eurodatar in forum Qt Programming
    Replies: 2
    Last Post: 8th July 2010, 16:12
  2. Window Modality question
    By zgulser in forum Qt Programming
    Replies: 11
    Last Post: 25th May 2009, 11:44
  3. Workaround for StandardItemModel drag drop bug
    By onamatic in forum Qt Programming
    Replies: 4
    Last Post: 9th November 2008, 21:50
  4. mainwindow modality
    By user in forum Qt Programming
    Replies: 0
    Last Post: 11th July 2008, 00:54
  5. QWidget::setMask: bug &/or help for workaround
    By ataffard in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2008, 07:34

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.