[Qt-interest] DBus / KDE 4. Disable for pure Qt program?

Thiago Macieira thiago at kde.org
Tue Aug 3 14:46:04 CEST 2010


On Tuesday 3. August 2010 08.22.05 Guido Seifert wrote:
> Hi,
> is there a way to tell a Qt program, which is started on KDE 4, not to use
> the DBus? 

No.

The platform plugin will load KDE libraries and those will do whatever they 
want. In other environments (Maemo, MeeGo, Symbian), the libraries from those 
systems will do what they want too.

> A few weeks ago I asked how to disable certain annoying messages
> I receive on stderr, when I start some of my pure Qt programs on KDE 4. I
> got several proposals to switch them off using kdebugdialog. Unfortunately
> nothing worked and nobody could tell me what caused these message. I was
> not sure if this is a KDE or a Qt bug. Now I discovered that on startup my
> Qt program talks via the DBus daemon with KDE. Is there a way to prevent
> this? Other than recompile Qt without dbus support?

The problem is not in Qt nor in your application.

The problem is in KDE Libraries. It must be solved there. Those messages 
should not be printed, so they are either KDE bugs or bugs in your 
distribution for enabling them by default.

If you build Qt without D-Bus, instead of getting annoying stderr messages on 
startup, you'll get crashes.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100803/34548364/attachment.bin 


More information about the Qt-interest-old mailing list