shouldn't this be the standard behaviour anyway? first remove, then delete or move + change settings (to reuse the object) at least i designed it that way for a qt project some time ago
@James: Having a quick look at worldclock plasmoid i think the reason for it's slowness is a different one
@anon: Why so i have to remove it before deleting? I mean in the developer mind it's "Ok, i don't need this item anymore, so let's delete it", and the thing is that it works, just it's much slower and i sincerely don't see a reason for that.
The reason is that in the ~QGraphicsViewItem, the virtuals functions such as the boundingRect are not avaliable anymore. So the graphics view doesn't know what to update and then has to update everything.
@Albert Astals Cid well in real live when someone dies you also have to notify the parents (when they still live) and remove the person out of the registers, don't you?
I think that I got my project error...
ReplyDeletewhy I haven't guessed it before ?
Someone better tell the WorldClock guys because it still locks Plasma hard at 100%.
ReplyDeleteshouldn't this be the standard behaviour anyway?
ReplyDeletefirst remove, then delete
or move + change settings (to reuse the object)
at least i designed it that way for a qt project some time ago
@James: Having a quick look at worldclock plasmoid i think the reason for it's slowness is a different one
ReplyDelete@anon: Why so i have to remove it before deleting? I mean in the developer mind it's "Ok, i don't need this item anymore, so let's delete it", and the thing is that it works, just it's much slower and i sincerely don't see a reason for that.
The reason is that in the ~QGraphicsViewItem, the virtuals functions such as the boundingRect are not avaliable anymore.
ReplyDeleteSo the graphics view doesn't know what to update and then has to update everything.
@Albert Astals Cid
ReplyDeletewell in real live when someone dies you also have to notify the parents (when they still live) and remove the person out of the registers, don't you?