[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Progress bar inside KListViewItem?
From:       Sebastian Trueg <trueg () k3b ! org>
Date:       2004-04-25 12:52:01
Message-ID: 200404251451.49273.trueg () k3b ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Take a look at my implementation in K3bListView. It uses a static QProgress 
Object and then uses the QStyle methods. It's fast and makes use of the 
different styles.

Cheers,
Sebastian

On Saturday 17 April 2004 10:47, Nicos Gollan wrote:
> On Fri, 16 Apr 2004 23:03:57 +0200
>
> Martin Köbele <martin@mkoebele.de> wrote:
> > I had no success with grabing the widget and painting the pixmap.
> > Looked very ugly and was slow. And the height and width of the item
> > got screwed... :/
>
> My code seems to do quite well in preserving the width and height of the
> item by calling the setFixedSize() method, but it is *very* slow. I
> haven't yet tried the optimizations pointed out though.
>
> I think I'll use the filled rectangle for the time being, it's really
> flexible and allows for custom colors rather easily (and it's very easy
> to replace when something better comes along :-) )
>
> Thanks to all who responded :-)

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic