KConfigDialogManager support for QButtonGroup does not work
Benjamin Meyer
ben at meyerhome.net
Mon Sep 22 14:20:29 BST 2008
On Sep 22, 2008, at 4:46 AM, Albert Astals Cid wrote:
>
> ----- Mensaje original -----
>>
>> On Sep 21, 2008, at 5:48 PM, Albert Astals Cid wrote:
>>>
>>> * Try to support QButtonGroup, that means tracking QObjects and
>>> finding a way
>>> to "find" the QButtonGroup. Tracking QObjects needs the API to
>>> change (bad)
>>> and as QButtonGroup can have no parent, find it is not trivial
>>> either (bad)
>>
>> QButtonGroup ( QObject * parent = 0 ) is a public function last I
>> checked.
>
> Exactly what i'm saying, if i can create a QButtonGroup without a
> parent how am i supposed to find it?
>
> Albert
By calling setParent on your buttongroup? KConfigDialogManager works
only on the tree of objects. If QButtonGroup doesn't have a parent it
is probably leaking memory anyway when you delete the dialog.
-Benjamin Meyer
More information about the kde-core-devel
mailing list