Consider this .kcfg file: <?xml version="1.0" encoding="UTF-8"?> <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > <kcfgfile name="foo" /> <group name="General"> <entry name="Bar" type="Enum"> <choices> <choice name="Bla" value="bla" /> </choices> </entry> </group> </kcfg> and this .kcfgc: File=foo.kcfg ClassName=FooSettings Mutators=true GenerateProperties=true The build fails with foosettings.cpp:23:12: error: no member named 'setValueForChoice' in 'KConfigCompilerSignallingItem' itemBar->setValueForChoice(QStringLiteral( "Bla" ), QStringLiteral( "bla" ));
Seems to work https://invent.kde.org/frameworks/kconfig/commit/c098a4f105fb6bb0a5a5a89f09e2211b627266dc (no MR).