[Qt-interest] QDialog behavior

Tony Thompson Tony.Thompson at stone-ware.com
Wed May 6 04:28:58 CEST 2009


Well, now I feel really stupid....in my search for how the parent was
set for my QDialog, I found that I was setting two window flags: 

Qt::CustomizeWindowHint | Qt::WindowTitleHint

Not sure I remember why I was doing that but when I removed them,
everything started working on Linux then.  It is odd that these flags
had no effect on the dialog behavior on Windows or OS X but made it
display differently on Linux.

My QDialog does not have a parent, BTW.  My application only has a
QSystemTrayIcon as its interface.

One other odd thing I have noticed about the dialog.  It is set as a
modal dialog which Linux seems to honor.  My system tray icon context
menu no longer works.  On Windows and Mac, it doesn't matter if the
dialog is modal or not, I can still use the context menu on the system
tray icon.

Nice that I start out with a Linux only issue and now the issue switches
to the other two platforms and Linux works fine.

On Wed, 2009-05-06 at 05:11 +0530, Raja Sekharan wrote:
> Could be that the parent of the dialog is not set properly. Or the
> parent is a widget like MDIArea? 
> 
> 
> I once set an MDIArea as a parent of a dialog box. When the dialog was
> 'exec'ed, I saw only the form elements on the dialog not the form or
> the title bar itself. It looked like the dialog's elements were on the
> MDIArea. Are you facing a similar problem? Could you elaborate/ give a
> screenshot?
> 
> 
> Rajasekharan
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
 
This message (and any associated files) is intended only for the 
use of the individual or entity to which it is addressed and may 
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient 
you are hereby notified that any dissemination, copying or 
distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, 
please notify us immediately by replying to the message and deleting 
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.



More information about the Qt-interest-old mailing list