[Qt-interest] Making convenience dialogs window modal

Efan Harris efanharris at gmail.com
Tue Jan 27 23:29:25 CET 2009


Hello Acenes,Just copy the entire source code of any of this file which you
want to use liek Qcolordialog
make the constructor public rename the class and use it as if it is your own
class.
I had similar situation once And this is what I did.

Or untlernately you just change the constructor to public in your installed
source code and rebuild, it will not have any adverse effect.

by the way they have one suggestion pending there.
http://www.qtsoftware.com/developer/task-tracker/index_html?id=160027&method=entry


On Tue, Jan 27, 2009 at 6:10 AM, Acenes <acenes at gmx.net> wrote:

> I need to display the convenience dialogs QColorDialog, QFontDialog and
> QInputDialog to run window modal, instead of application modal. The reason
> is that the application has multiple unparented windows at same time, and
> using one of these dialogs should not block all the other windows but only
> the one it belongs to.
>
> However these classes have only static methods, and theire construtors are
> private so I also cant even subclass them.
>
> Is there any other way I could achive this, except hacking or cloning the
> qt
> source?
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090127/7b4e9829/attachment.html 


More information about the Qt-interest-old mailing list