Hi Andreas, thanks, you were right, I already update the bug report[1]:<br><br>- Attached the test case and its backtrace (two text files)<br>- Append a comment about another test case ( is the same of this paste <a href="http://paste.kde.org/516338/">http://paste.kde.org/516338/</a> )<br>
<br>Regards,<br>Percy<br><br><a href="https://bugs.kde.org/show_bug.cgi?id=303228">https://bugs.kde.org/show_bug.cgi?id=303228</a><br><br><br><br><br><div class="gmail_quote">On Thu, Jul 12, 2012 at 2:24 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>I can't help you with the use of the class, but you should improve the bugreport a bit. First of all, don't use paste's, either attach files to the bugreport or put the code and backtrace inline. The paste's may be deleted and then the bugreport is useless.</div>

<div><br></div><div>The other thing I noticed is that the backtrace does not match your sample code, it refers to MyModel::data() line 58, but in the paste in line 58 there's already the KApplication constructor. So please make sure you post the exact code that matches the backtrace, not some other version.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Andreas</font></span><div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 12, 2012 at 7:43 AM, Percy Camilo Triveño Aucahuasi <span dir="ltr"><<a href="mailto:percy.camilo.ta@gmail.com" target="_blank">percy.camilo.ta@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there, <br><br>I can't use KCategorizedView: when I add more items -after the view has been setup- then KCategorizedView calls recursively to visualRect and crash.<br>

<br>This is the bug I reported (it contains a simple use case in wich the class fails):<br>
<br><a href="https://bugs.kde.org/show_bug.cgi?id=303228" target="_blank">https://bugs.kde.org/show_bug.cgi?id=303228</a><br><br>Also, you can reproduce the bug by adding more items in the kdelibs/kdeui/kcategorized test or just by copy and paste this pastebin:<br>


<br><a href="http://paste.kde.org/516338/" target="_blank">http://paste.kde.org/516338/</a><br><br>In short, the class doesn't behaviour like QListView (as stated in its documentation): with QListView one can add or remove items after setup the model and the view, on the other hand it seems that with KCategorizedView can't add items after that.<br>


<br>Perhaps I'm not using correctly the class, it that case I think the documentation should be changed.<br><br>Thanks in advance,<br>Percy<br><br>p.s: I tried to talk to ereslibre (irc) but it seems he is not online. I also wrote to Alex Merry but he doesn't have the time now, please somebody that knows about that class help me.<br>


<br><br><br><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Percy Camilo Triveño Aucahuasi</b> <span dir="ltr"><<a href="mailto:percy.camilo.ta@gmail.com" target="_blank">percy.camilo.ta@gmail.com</a>></span><br>


Date: Wed, Jul 11, 2012 at 11:04 PM<br>Subject: Re: KCategorizedView bug?<br>To: Alex Merry <<a href="mailto:kde@randomguy3.me.uk" target="_blank">kde@randomguy3.me.uk</a>><br><br><br>Alex, thanks for your time, <br>

<br>I understand the situation, widgets like KCategorizedView are nice examples of the potential of qwidgets api (despite that the itemviews -specially the delegates part- can be better)<br>

<br>I hope situation improve; if you want to reproduce the problem take the KCategorizedViewTest and add more items after setup the view ... like this-><br><br><a href="http://paste.kde.org/516338/" target="_blank">http://paste.kde.org/516338/</a><br>



<br>... maybe the last info can help when you have the time ;)<br><br>Thanks again for the reply,<br><br>Cheers,<br>Percy <br><div><div><br><br><br><br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 4:05 AM, Alex Merry <span dir="ltr"><<a href="mailto:kde@randomguy3.me.uk" target="_blank">kde@randomguy3.me.uk</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm afraid I'm really not familiar with the code.  I learnt enough about<br>
the code to make the fixes I did, and that was two years ago, so I've<br>
forgotten it all again now.<br>
<br>
I'll try to have a look at some point if I get the time, but I can't<br>
make any promises.<br>
<span><font color="#888888"><br>
Alex<br>
</font></span><div><div><br>
<br>
<br>
On 10/07/12 05:43, Percy Camilo Triveño Aucahuasi wrote:<br>
> Hi Alex, first of all apologies for sending this email about a<br>
> KDE/KDELibs/KCategorized bug, I'm Percy Camilo Triveño Aucahuasi and I'm<br>
> working for KDEEdu (in a GSoC project); in the run of my work I found a<br>
> bug[1] (I think) of KCategorizedView.<br>
><br>
> Please help me with this KCategorizedView bug; dfaure already asigned<br>
> the bug to ereslibre but it seems ereslibre is not active and I saw that<br>
> you did some interesting commits to that class (in particular<br>
> <a href="https://projects.kde.org/projects/kde/kdelibs/repository/revisions/e04ab3f8ee94f740daf42b92a6ad94d979f1dc9e" target="_blank">https://projects.kde.org/projects/kde/kdelibs/repository/revisions/e04ab3f8ee94f740daf42b92a6ad94d979f1dc9e</a>)<br>




><br>
><br>
> This is the text of the bug:<br>
><br>
> ----<br>
> KCategorizedView is calling visualRect recursively<br>
><br>
> Hi there, I modified the test of kcategorizedview to categorized the<br>
> items in 2 groups: even/odd number, but kcategorizedview seem calling<br>
> visualRect recursively ... ¿is this ok? or I'm doing something wrong?<br>
><br>
> <a href="http://paste.kde.org/514292/" target="_blank">http://paste.kde.org/514292/</a><br>
><br>
> it seems the problem is arround line 25, this is the backtrace:<br>
> <a href="http://paste.kde.org/514298/" target="_blank">http://paste.kde.org/514298/</a><br>
> ----<br>
><br>
> If you can help me would be great.<br>
><br>
> Best regards,<br>
> Percy Camilo Triveño Aucahuasi<br>
><br>
> [1] <a href="https://bugs.kde.org/show_bug.cgi?id=303228" target="_blank">https://bugs.kde.org/show_bug.cgi?id=303228</a><br>
><br>
><br>
<br>
<br>
</div></div></blockquote></div><br>
</div></div></div><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>