Disabling KDE dialogs for Qt applications

Kishore kitts.mailinglists at gmail.com
Wed Mar 24 17:11:41 GMT 2010

On Wednesday 24 Mar 2010 4:30:43 pm Kevin Krammer wrote:
> On Tuesday, 2010-03-23, Jeremy Sanders wrote:
> > Hi - Seriously, is there any way to disable the KDE dialogs the appear to
> > replace the standard Qt dialogs when running Qt-only apps under KDE 4.4+?
> > 
> > I've filed a bug here about the file dialog
> > https://bugs.kde.org/show_bug.cgi?id=229375
> > but it has gone into a vacuum.
> Olivier is the Qt developer working on the platform integration things so
> you could probably get this moving again by providing the test case for
> the second problem.
> > Now I've discovered that the KDE replacement colour selection dialog box
> > doesn't support setting alpha channel values, which my program needs.
> > Argh!
> That should be added to KColorDialog then. I recommend adding it to the bug
> report.
> > It would be fine if these dialogs worked just like the Qt dialogs, but
> > they don't. The implementation is pretty flawed.
> Seems like it indeed.
> > Is there any way I can tell KDE not to do this dialog replacement? It
> > presents serious usability problems for my applications under KDE which I
> > can't fix unless I rewrite the dialogs completely.
> I don't think that KDE is doing this since the Qt application does not link
> or execute any KDE code at startup. It is more likely handled somewhere in
> Qt, some code that decides to try loading the KDE platform integration
> plugin (like it would decide to load a different one when running in a
> different workspace).

Usually, Qt has a static functions for standard dialogs which when called 
prefer the platform's default dialog unless otherwise specified. See 
http://doc.trolltech.com/4.6/qcolordialog.html#ColorDialogOption-enum for the 
DontUseNativeDialog flag.

> A KDE Plasma workspace session is often identifies using the
> KDE_FULL_SESSION environment variable. If this check is used in Qt as well
> you could try unsetting it before launching the Qt app that shouldn't use
> workspace integration.
> Cheers,
> Kevin

This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

More information about the kde mailing list