From kde-devel Tue Mar 20 23:26:22 2012 From: Stefan Majewsky Date: Tue, 20 Mar 2012 23:26:22 +0000 To: kde-devel Subject: Re: Using custom controls in KConfigXT Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=133228610828635 On Mon, Mar 19, 2012 at 9:19 AM, Christian Taubenheim wrote: > Hi all, > i use the KConfigXT concept for managing settings of my app. > I also managed to implement a QButton that holds a user specified color (by > opening a QColorDialog), which is transferred into the settings manually. For a working code sample, look in SVN at trunk/KDE/kdegames/palapeli/src/config. In the config dialog, one can select a background pattern for the game area, and selecting "Plain color" enables a KColorButton where the color can be chosen. I don't remember at the moment if I use KConfigXT, but the pattern presented there can definitely be applied to KConfigXT. Greetings Stefan >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<