Thank you fro reply.

It seems that using qmlcanvas module will be the nice way to resolve my
problem.

BTW, when QT quick 2.0 will be released ?

Regards.

-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 
发送时间: 2011年12月5日 13:37
收件人: [email protected]
抄送: [email protected]; [email protected]
主题: Re: [Qt-qml] 答复: how to draw line in QML

Hello,

With QtQuick 1.x, your options include:

* Subclassing QDeclarativeItem and override paint() to do custom painting
with the QPainter API, or
* Using the qmlcanvas module (http://qt.gitorious.org/qt-labs/qmlcanvas)
which allows for drawing lines and shapes directly from QML, without needing
to touch C++

QtQuick 2.0 will come with a built-in Canvas element that basically has the
same API as the qmlcanvas module. This API is based on the HTML 5 canvas.


cheers,

Bea

On 05/12/2011, at 2:51 PM, ext 宫长辉 wrote:

> Thank you for replay.
>  
> Can you show me some detail information about it?
>  
>  
> Regards.
>  
>  
> 发件人: 肇鑫 [mailto:[email protected]] 
> 发送时间: 2011年12月5日 11:45
> 收件人: 宫长辉
> 抄送: [email protected]
> 主题: Re: [Qt-qml] how to draw line in QML
>  
> You can read integration with c++ part of QML.
> 
> Owen
> 
> On Mon, Dec 5, 2011 at 9:38 AM, 宫长辉 <[email protected]>
wrote:
> 
> Hello.
> 
>  I'd falled into the the trouble when I was desining my new product.
>  In my product I need draw some dynamic graphs, such as line and wave.
>  I read over the help of the QCreator, but I didn't find the solution.
>  Does anybody can help me out of it?
> 
> Thanks a lot
> 
> 
> Regards.
> 
> _______________________________________________
> Qt-qml mailing list
> [email protected]
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
> 
> 
> 
> -- 
> 肇鑫
> Owen Zhao
> tel/miliao:18602412580
> qq:66975918
> msn:[email protected]
> 
> 
> 在此邮件中未发现病毒。
> 检查工具:AVG - www.avg.com
> 版本:2012.0.1873 / 病毒数据库:2102/4657 - 发布日期:12/04/11
> _______________________________________________
> Qt-qml mailing list
> [email protected]
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml



-----
在此邮件中未发现病毒。
检查工具:AVG - www.avg.com
版本:2012.0.1873 / 病毒数据库:2102/4657 - 发布日期:12/04/11

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to