Re: Need help: Use of KConfig
- Date: Sat, 16 Jul 2016 12:11:40 -0400
- From: Michael Pyne <mpyne@xxxxxxx>
- Subject: Re: Need help: Use of KConfig
On Sat, July 16, 2016 01:15:38 Olivier Churlaud wrote:
> I spent a lot of time tonight, trying to port a config dialog out of
> KButtonGroup (in Okular). I read that I should instead use QButtonGroup
> + QGroupBox. I did this, and this part works.
> The problem I have is that the KConfig-thing doesn't write/read from
> this QButtonGroup. And indeed, this is commented in
> How should I do to have several radio buttons to select one system
I admit that I'm not a KConfig expert, but it looks as if there's specific
code to look at QGroupBoxes that contain radio buttons (at line 214), and line
105 contains the code to have KConfigDialogManager look at QGroupBoxes when
considering types to look at within the dialog box.
So it seems to me that what you're trying to do should work, as long as the
QGroupBox that holds the radio buttons has the normal requirements met (starts
with kcfg_, etc.).
- Michael Pyne