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

How to store complex data with KConfig XT?

Tags: None
(comma "," separated)
naraesk
Registered Member
Posts
117
Karma
0
OS
Hello,

I am developing a qml-only plasa widget and struggling a bit with kconfig xt and how to define the main.xml file. At runtime, the user can input a list of project names (p1, p2, p3...). Currently, they are stored via:
Code: Select all
<entry name="projects" type="StringList">
</entry>


Now I'd like to store for each project n branch names (b1, b2, b3 for p1, b3, b4, b6 for p2 and so on). How do I do this? While defining a second StringList for branch name, the belonging gets lost. My only idea is to do store strings such as "b1@p1", "b2@p1" etc. But is there really no better solution to store data?

Thanks in advance




Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]