KCategorizedView bug?

Andreas Pakulat apaku at gmx.de
Thu Jul 12 08:24:39 BST 2012


Hi,

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.

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.

Andreas

On Thu, Jul 12, 2012 at 7:43 AM, Percy Camilo Triveño Aucahuasi <
percy.camilo.ta at gmail.com> wrote:

> Hi there,
>
> I can't use KCategorizedView: when I add more items -after the view has
> been setup- then KCategorizedView calls recursively to visualRect and crash.
>
> This is the bug I reported (it contains a simple use case in wich the
> class fails):
>
> https://bugs.kde.org/show_bug.cgi?id=303228
>
> Also, you can reproduce the bug by adding more items in the
> kdelibs/kdeui/kcategorized test or just by copy and paste this pastebin:
>
> http://paste.kde.org/516338/
>
> 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.
>
> Perhaps I'm not using correctly the class, it that case I think the
> documentation should be changed.
>
> Thanks in advance,
> Percy
>
> 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.
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Percy Camilo Triveño Aucahuasi <percy.camilo.ta at gmail.com>
> Date: Wed, Jul 11, 2012 at 11:04 PM
> Subject: Re: KCategorizedView bug?
> To: Alex Merry <kde at randomguy3.me.uk>
>
>
> Alex, thanks for your time,
>
> 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)
>
> I hope situation improve; if you want to reproduce the problem take the
> KCategorizedViewTest and add more items after setup the view ... like this->
>
> http://paste.kde.org/516338/
>
> ... maybe the last info can help when you have the time ;)
>
> Thanks again for the reply,
>
> Cheers,
> Percy
>
>
>
>
>
> On Wed, Jul 11, 2012 at 4:05 AM, Alex Merry <kde at randomguy3.me.uk> wrote:
>
>> I'm afraid I'm really not familiar with the code.  I learnt enough about
>> the code to make the fixes I did, and that was two years ago, so I've
>> forgotten it all again now.
>>
>> I'll try to have a look at some point if I get the time, but I can't
>> make any promises.
>>
>> Alex
>>
>>
>>
>> On 10/07/12 05:43, Percy Camilo Triveño Aucahuasi wrote:
>> > Hi Alex, first of all apologies for sending this email about a
>> > KDE/KDELibs/KCategorized bug, I'm Percy Camilo Triveño Aucahuasi and I'm
>> > working for KDEEdu (in a GSoC project); in the run of my work I found a
>> > bug[1] (I think) of KCategorizedView.
>> >
>> > Please help me with this KCategorizedView bug; dfaure already asigned
>> > the bug to ereslibre but it seems ereslibre is not active and I saw that
>> > you did some interesting commits to that class (in particular
>> >
>> https://projects.kde.org/projects/kde/kdelibs/repository/revisions/e04ab3f8ee94f740daf42b92a6ad94d979f1dc9e
>> )
>> >
>> >
>> > This is the text of the bug:
>> >
>> > ----
>> > KCategorizedView is calling visualRect recursively
>> >
>> > Hi there, I modified the test of kcategorizedview to categorized the
>> > items in 2 groups: even/odd number, but kcategorizedview seem calling
>> > visualRect recursively ... ¿is this ok? or I'm doing something wrong?
>> >
>> > http://paste.kde.org/514292/
>> >
>> > it seems the problem is arround line 25, this is the backtrace:
>> > http://paste.kde.org/514298/
>> > ----
>> >
>> > If you can help me would be great.
>> >
>> > Best regards,
>> > Percy Camilo Triveño Aucahuasi
>> >
>> > [1] https://bugs.kde.org/show_bug.cgi?id=303228
>> >
>> >
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120712/469240fc/attachment.htm>


More information about the kde-core-devel mailing list