KConfigXT and widget initialisation?

Louai Al-Khanji louai.khanji at gmail.com
Sun Apr 6 17:20:39 BST 2008


Hi all,

Is it possible to use KConfigXT to initialise combo boxes before trying to set 
their default value? That is, I would like to say something like this:

class Plugins
{
    // ...
    static QStringList availablePlugins();
    static QString defaultPlugin();
}

and in the .kcfg

    <group name="Plugins">
	<!-- Set up kcfg_GraphicsPlugin combobox -->
        <entry name="GraphicsPlugin" type="String">
            <values code="true">Plugins::availablePlugins()</values>
            <default code="true">Plugins::defaultPlugin()</default>
        </entry>
    </group>

Is something like this currently possible?

-- 
Louai Al-khanji




More information about the kde-core-devel mailing list