[Interest] Qt5.3.1 ListView delegate Image overlapped
Leslie Zhai
xiangzhai83 at gmail.com
Thu Jul 17 12:07:40 CEST 2014
Hi Filip,
Thanks for your help ;)
I got it by reading about qtdeclarative/src/quick/items/qquickimage.cpp
and I noticed http://comments.gmane.org/gmane.comp.lib.qt.devel/17685
there is only QTouchEvent for MultiPointTouchArea, but NO QTabletEvent
for hacker`s TabletSketchArea https://codereview.qt-project.org/#/c/74202/
How to get pressure value for QML application? please someone give me
some advice?
On 07/17/2014 02:55 PM, Filip Piechocki wrote:
> It is not the bug as you didn't tell the image to fill the parent (which
> is the delegate), so why it should fill it?
>
> BR,
> Filip
>
>
> On Thu, Jul 17, 2014 at 8:41 AM, Leslie Zhai <xiangzhai83 at gmail.com
> <mailto:xiangzhai83 at gmail.com>> wrote:
>
> Hi Filip,
>
> Thanks for your reply :)
>
> and I can edit the image with gimp to change it`s height to 95, then
> it is ok, so ListView delegate`s bug is fail to scale the Image, isn'it?
>
>
> On 07/17/2014 02:30 PM, Filip Piechocki wrote:
>
> Hi,
> You did not set the size, nor anchors in your Image item so it has
> implicit width and height taken from the image, which seems to be
> different than your delegate size. So probably you want to add
> anchors.fill: parent in your Image item.
>
> BR,
> Filip
>
> On Jul 17, 2014 5:42 AM, "Leslie Zhai" <xiangzhai83 at gmail.com
> <mailto:xiangzhai83 at gmail.com>
> <mailto:xiangzhai83 at gmail.com <mailto:xiangzhai83 at gmail.com>>__>
> wrote:
>
> Hi Qt developers,
>
> My QML code shown as below:
>
> ListView {
> model: xmlModel
> anchors.fill: parent
> delegate: Item {
> width: 340; height: 95
>
> Image { source: "../images/3index-content-bg.__png" }
> }
>
> I use XmlListModel to parse a XML such as
> http://planet.qt-project.org/__rss20.xml
> <http://planet.qt-project.org/rss20.xml>
>
> Then I use delegate Image to render the Item`s background,
> if scroll the
> listview up/downwards very quickly, when stop, the Item`s
> background
> Images overlapped just like
> http://leetcode.cn/drupal/__sites/default/files/listview-__buggy.png
> <http://leetcode.cn/drupal/sites/default/files/listview-buggy.png>
>
> My Linux box: Linux archlinux 3.15.2-1-ARCH #1 SMP PREEMPT
> Fri Jun 27
> 07:41:19 CEST 2014 x86_64 GNU/Linux
> My WM is KF5/KWin(kwin_x11) git repos
> My Graphic Card: 00:02.0 VGA compatible controller: Intel
> Corporation
> Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
> My xf86-video-intel-2.99.912-1.__x86_64 X.org
> Intel
> i810/i830/i915/945G/G965+ video drivers
> My mesa-10.2.2-1.x86_64 an
> open-source
> implementation of the OpenGL specification
>
> Please someone give me some advice, thanks a lot!
>
> PS: if scroll the listview very slowly, then it is ok, but
> I can not ask
> customers to scroll it slowly ;P
>
> --
> Regards
> Leslie Zhai <xiang.zhai at i-soft.com.cn
> <mailto:xiang.zhai at i-soft.com.cn>
> <mailto:xiang.zhai at i-soft.com.__cn
> <mailto:xiang.zhai at i-soft.com.cn>>>
>
> a KDE developer
>
> _________________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> <mailto:Interest at qt-project.__org <mailto:Interest at qt-project.org>>
> http://lists.qt-project.org/__mailman/listinfo/interest
> <http://lists.qt-project.org/mailman/listinfo/interest>
>
>
> --
> Regards
> Leslie Zhai <xiang.zhai at i-soft.com.cn <mailto:xiang.zhai at i-soft.com.cn>>
> a KDE developer
>
>
--
Regards
Leslie Zhai <xiang.zhai at i-soft.com.cn>
a KDE developer
More information about the Interest
mailing list