![]() Registered Member ![]()
|
I have a problem with the configuration interface of a little plasmoid which I write at the moment. I have a little QTreeView where the user can see some informations.
In my header file I have
I also have this function:
and this:
All of this works fine at the first moment. But if I close the settingdialoge and reopen it, it sometimes crash at parentItem->appendRow(item). So I think parentItem points at uninitialised memory but I don't know why. I don't delete it. I hope you can help me. |
![]() Administrator ![]()
|
This is because everything created in createConfigurationInterface is automatically destroyed because it is a child of the Configuration dialog, which is destroyed when closed. I would recommend creating the model in init();
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks, I see. I thought if I write it in the header it won't be deletet. Now I know it better ![]() |
![]() Administrator ![]()
|
If you have managed to resolve the problem, could you please mark the thread as solved? Thanks in advance.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell