This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KConfig and QTreeWidget

Tags: None
(comma "," separated)
christau
Registered Member
Posts
9
Karma
0
OS

KConfig and QTreeWidget

Fri Nov 05, 2010 11:46 pm
Hello,
i wrote a configuration dialog with the help of KConfig.
But now, i want to add a QTreeWidget to this config dialog.
Everything is fine. But how doi get this QTreeWidget connected to the KConfig concept. If i prefix it with kcfg_MyTree, kconfig moans a runtime that it can't handle my widget.
I mean, how can i tell KConfig that the data changed on my QTreeWidget and the Apply button should become enabled?

Can anybody help?

Thanks in advance.
Greetings, -chris-
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KConfig and QTreeWidget

Sun Nov 07, 2010 9:06 am
Tree views unfortunately need to be handled manually, as the automatic KXConfig framework can't handle it. You need to subclass several functions, which can be found in the documentation:

http://api.kde.org/4.x-api/kdelibs-apid ... ialog.html


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient