Re: [Interest] QQuickGrabItemResult on iOS

2015-03-11 Thread Ben Lau
Hi Michael,

Voted.

Thank for suggestion! Change the code to use canvas is a reasonable method
. Just the work load is huge.. I have an arrow component in QML and linked
with a lots of images in different size with text arranged in grid.

So before go into the canvas approach,  I would like to try few more thing
first.

Before Qt 5.4 is out , I have written my own version of grabToImage(). And
I just found that the code works in iPhone with Qt 5.3.2 . However, it use
QQuickShaderEffectTexture and the class is no longer available in Qt 5.4. I
would like to take a look and see can it be fixed by using private API.

On Wed, 11 Mar 2015 at 21:48 Michael R Nelson  wrote:

> QQuickItem::grabToImage() not working on iOS for me either in 5.4.0 and
> 5.4.1. Here’s a bug report, please up-vote if it’s important to you:
> https://bugreports.qt.io/browse/QTBUG-44450. Regarding work-around:
> perhaps get a 2D context in a Canvas object and paint the object in
> onPaint()? This is something I’ve been meaning to try.
>
>
>
> Regards,
>
> Mike
>
>
>
> *From:* interest-bounces+mnelson=sutron@qt-project.org [mailto:
> interest-bounces+mnelson=sutron@qt-project.org] *On Behalf Of *Ben Lau
> *Sent:* Wednesday, March 11, 2015 6:54 AM
> *To:* Brian Dentino
> *Cc:* interest@qt-project.org Interest
> *Subject:* Re: [Interest] QQuickGrabItemResult on iOS
>
>
>
>
>
> On 17 October 2014 at 10:11, Brian Dentino 
> wrote:
>
> Has anyone had any success using QQuickItem::grabToImage on iOS? I'm using
> it successfully on OSX and android, and it works perfectly fine in the iOS
> simulator (iOS 7 and 8), but when I run on an iOS device, the images come
> up empty. I've tried on both an iPad 2 and an iPhone 5s (both running iOS
> 8), but I don't have access to any devices with iOS 7.
>
> Any advice on how to root-cause this?
>
> Thanks,
> Brian
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> Hi Brain,
>
>
>
> I have got the same problem. The grabToImage() do not works with iOS 8. It
> works only in simulator. Did you found any solution to fix it?
>
>
>
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QQuickGrabItemResult on iOS

2015-03-11 Thread Michael R Nelson
QQuickItem::grabToImage() not working on iOS for me either in 5.4.0 and 5.4.1. 
Here’s a bug report, please up-vote if it’s important to you: 
https://bugreports.qt.io/browse/QTBUG-44450. Regarding work-around: perhaps get 
a 2D context in a Canvas object and paint the object in onPaint()? This is 
something I’ve been meaning to try.

Regards,
Mike

From: interest-bounces+mnelson=sutron@qt-project.org 
[mailto:interest-bounces+mnelson=sutron@qt-project.org] On Behalf Of Ben Lau
Sent: Wednesday, March 11, 2015 6:54 AM
To: Brian Dentino
Cc: interest@qt-project.org Interest
Subject: Re: [Interest] QQuickGrabItemResult on iOS


On 17 October 2014 at 10:11, Brian Dentino 
mailto:brian.dent...@gmail.com>> wrote:
Has anyone had any success using QQuickItem::grabToImage on iOS? I'm using it 
successfully on OSX and android, and it works perfectly fine in the iOS 
simulator (iOS 7 and 8), but when I run on an iOS device, the images come up 
empty. I've tried on both an iPad 2 and an iPhone 5s (both running iOS 8), but 
I don't have access to any devices with iOS 7.

Any advice on how to root-cause this?

Thanks,
Brian
___
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

Hi Brain,

I have got the same problem. The grabToImage() do not works with iOS 8. It 
works only in simulator. Did you found any solution to fix it?


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QQuickGrabItemResult on iOS

2015-03-11 Thread Ben Lau
On 17 October 2014 at 10:11, Brian Dentino  wrote:

> Has anyone had any success using QQuickItem::grabToImage on iOS? I'm using
> it successfully on OSX and android, and it works perfectly fine in the iOS
> simulator (iOS 7 and 8), but when I run on an iOS device, the images come
> up empty. I've tried on both an iPad 2 and an iPhone 5s (both running iOS
> 8), but I don't have access to any devices with iOS 7.
>
> Any advice on how to root-cause this?
>
> Thanks,
> Brian
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>

Hi Brain,

I have got the same problem. The grabToImage() do not works with iOS 8. It
works only in simulator. Did you found any solution to fix it?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QQuickGrabItemResult on iOS

2014-10-16 Thread Brian Dentino
Has anyone had any success using QQuickItem::grabToImage on iOS? I'm using it 
successfully on OSX and android, and it works perfectly fine in the iOS 
simulator (iOS 7 and 8), but when I run on an iOS device, the images come up 
empty. I've tried on both an iPad 2 and an iPhone 5s (both running iOS 8), but 
I don't have access to any devices with iOS 7.

Any advice on how to root-cause this?

Thanks,
Brian
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest