KConfigDialogManager support for QButtonGroup does not work

Adeodato Simó dato at net.com.org.es
Thu Sep 18 21:43:18 BST 2008


Hello,

I'm finishing porting my application to KDE4, and I was getting trouble
getting KConfigDialog + KConfigSkeleton to play nice with my QButtonGroup
(it would work just fine in KDE3).

I started reading kconfigdialogmanager.cpp, and it looked to me that
QButtonGroup is supported: it is defined in s_changedMap, and special
cased in several places.

I asked Pino Toscano to take a look as well, and he immediately
discovered that support for QButtonGroup is simply broken:

  <pinotree> QButtonGroup *bg = qobject_cast<QButtonGroup *>(w);
  <pinotree> w is a QWidget*, but QButtonGroup inherit QObject,
             so that qobject_cast won't ever success

He suggested I mailed here to bring up this issue. My application now
uses KButtonGroup (which works like a charm), so as far as I'm concerned
QButtonGroup support could get fixed, or dropped with a note in the
documentation that a KButtonGroup should be used instead.

Cheers,

P.S.: Please CC me if you expect me to reply, I'm not subscribed.

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
In my opinion, the most fruitful and natural play of the mind is in
conversation. I find it sweeter than any other action in life; and if I
were forced to choose, I think I would rather lose my sight than my
hearing and voice.
                -- Michel de Montaigne





More information about the kde-core-devel mailing list