[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: KConfigXT for QGroupBox?
From:       Christoph Feck <christoph () maxiom ! de>
Date:       2014-05-20 20:46:30
Message-ID: 201405202246.30751.christoph () maxiom ! de
[Download RAW message or body]

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)
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic