KConfigXT for QGroupBox?

Christoph Feck christoph at maxiom.de
Tue May 20 20:46:30 UTC 2014


On Tuesday 20 May 2014 01:09:07 Andrius Štikonas wrote:
> Dear all,
> 
> Kdelibs4 had a widget called KButtonGroup. It is now deprecated in
> KDE Frameworks. The closest available replacement is QGroupBox.
> Unfortunately, I noticed that KConfigXT framework does not support
> it. It would be nice to have this feature...

KConfigXT allows arbitrary widgets which support the USER property, 
see http://doc-snapshot.qt-project.org/qt5-dev/qmetaobject.html#userProperty

The replacement is to use QButtonGroup, which is not a widget, but 
manages the mutually exclusive selections between the actual buttons, 
and "export" the selected item ID as the user property from the 
containing widget (which can be a QGroupBox, but does not need to be).

Christoph Feck (kdepepo)


More information about the Kde-frameworks-devel mailing list