From kde-devel Sat Jan 26 16:20:35 2008 From: Niko Sams Date: Sat, 26 Jan 2008 16:20:35 +0000 To: kde-devel Subject: KSettings::Dispatcher::registerComponent Message-Id: <200801261720.35114.niko.sams () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=120136433329308 Hello, I just tried to get this function working - and finally found the problem. in the api-docs it says you can use it this way: Dispatcher::registerComponent(componentData(), this, SLOT(loadSettings())); but KSettings::Dispatcher uses QMetaObject::invokeMethod to call the slot, and invokeMethod doesn't need the SLOT() macro - instead one should only use the method-name. So, my solution was to use the function like this: Dispatcher::registerComponent(componentData(), this, "loadSettings")); I think either the documentation has to be corrected, or the way reparseConfiguration calls the slot. niko >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<