Summary: | RSS Now Plasmoid fails to render text with Qt 4.5.1 | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | Chuck <cfox04> |
Component: | widget-misc | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | aseigo, colin.thomson, darktears31, kevin.kofler, rdieter, than |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Chuck
2009-04-25 19:43:38 UTC
I am also seeing this on Fedora 10/KDE-4.2.2 after the Qt update to 4.5.1 confirmed here as well. this is obviously a Qt bug. Is there any report at Qt Software we can monitor? (If not, should we file one?) And more importantly, is there a patch already? i don't know if there's a report, if it's been fixed already, etc, but upgrading qt shouldn't break anything painting related. qt 4.5.1 had a few regressions, however, and apparently this is one of them. I've reported the bug upstream to the Qt devs and as soon as I get a bug ID number I'll post a link here as a reference. OK I have found the source of the bug and have a slightly ugly workaround: In scroller.cpp @ 65 the Scroller constructor calls: setFlag(QGraphicsItem::ItemClipsChildrenToShape, true); That is the source of the bug since removing it allows all the child objects (both graphics and text) to draw on the screen. The plasmoid works, although the scrollers are no longer clipping the child feed items so the plasmoid does look a little ugly while scrolling (you see unclipped feed items moving outside the plasmoid window). I do have a question about this bug though, because when I used the plasmoid via plasmoidviewer it worked fine without any changes. So, is this purely a Qt bug or is there an interaction further up the chain that is causing the bug to display on my desktop, but not in the plasmoidviewer? I have already tried to report this bug up the chain to Trolltech, but I didn't get a bug # assigned. I will file a new one that has this information to see if it can get fixed. In an unrelated note, I found some minor memory leaks since some items like m_html were not being deleted in the SingleFeedItem destructor. I will file a separate patch for that. Thanks for your help, and as a bonus I'm starting to learn about how plasmoids work too! > setFlag(QGraphicsItem::ItemClipsChildrenToShape, true); interesting; at least we have an entry point for the bug now! thanks ... > because when I used the plasmoid via plasmoidviewer it worked fine without > any changes. that is indeed interesting; plasmoidviewer sets things up slightly differently than the desktop does, at least in 4.2 (i think the two are more similar in current trunk/ though), and often these kinds of subtle bugs are only triggered with Just The Right(tm) series of events. > m_html were not being deleted in the SingleFeedItem destructor. that's because they are parented to the SingleFeedItem object and so get automatically memory managed for us. > as a bonus I'm starting to learn about how plasmoids work too! :) |