Re: [Interest] Convert QQuickItem into image

2014-06-10 Thread Ben Lau
Thank you for all of your help. I have implemented a solution very similar to the QQuickItemGrabItem using private API. It is lucky that all of the required components are available in Qt 5.3. On 10 June 2014 02:11, Ben Lau wrote: > > too bad... I need this feature for my application. It can't

Re: [Interest] Convert QQuickItem into image

2014-06-09 Thread Ben Lau
too bad... I need this feature for my application. It can't wait for Qt 5.4 . Any alternative method? I have tried to create a new QQuickView and hold the item to render. It is not working if I don't call "show" on the view. It will not render and setup the QML component. On 5 June 2014 17:16,

Re: [Interest] Convert QQuickItem into image

2014-06-05 Thread Giuseppe D'Angelo
On 5 June 2014 11:16, Gunnar Sletta wrote: > It is new API so it goes to the next minor version of Qt, 5.4 in this case. Please add the \since... :-) -- Giuseppe D'Angelo ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/ma

Re: [Interest] Convert QQuickItem into image

2014-06-05 Thread Gunnar Sletta
It is new API so it goes to the next minor version of Qt, 5.4 in this case. cheers, Gunnar On 05 Jun 2014, at 11:14, Ben Lau wrote: > wow!! It is great! > > Will it be available in Qt 5.3.1? Or it need to wait unless Qt 5.4? > > > On 5 June 2014 16:48, Liang Qi wrote: > That was done, > ht

Re: [Interest] Convert QQuickItem into image

2014-06-05 Thread Ben Lau
wow!! It is great! Will it be available in Qt 5.3.1? Or it need to wait unless Qt 5.4? On 5 June 2014 16:48, Liang Qi wrote: > That was done, > https://github.com/qtproject/qtdeclarative/commit/0cb12e9e01b8309320706fab219945f0ff159413 > > http://doc-snapshot.qt-project.org/qt5-dev/qquickitem.h

Re: [Interest] Convert QQuickItem into image

2014-06-05 Thread Liang Qi
That was done, https://github.com/qtproject/qtdeclarative/commit/0cb12e9e01b8309320706fab219945f0ff159413 http://doc-snapshot.qt-project.org/qt5-dev/qquickitem.html#grabToImage Regards, Liang On 5 June 2014 10:15, Ben Lau wrote: > hi, > > I am writing an application that needs to convert a QM

[Interest] Convert QQuickItem into image

2014-06-05 Thread Ben Lau
hi, I am writing an application that needs to convert a QML component within a Flickable into image. As the size can be larger than the Flickable. Therefore ,QQuickView::grabWindow() do not work in this case. Any alternative method to paint a QQuickItem into image? Any tips will be welcome. I may