June 29, 2011

brucewuu brucewuu
Lab Rat
49 posts

how to do grahics options with QML

 

I want to make a application for image options , including some basic options of photoshop , like clipping the image with rectangle or round , add some comment to the image , if I don’t use QML , I can use QPainter to draw on it , while now I want to use QML to do it , do you guys have some good solutions ?thanks very much ~~

 Signature 

wish all the best to you from
bruce wuu
Autodesk China Inc.
SW Developer
M&E Product Developerment Group
Work 137 6411 8921
.(JavaScript must be enabled to view this email address)

3 replies

June 29, 2011

Vijay Bhaska Reddy Vijay Bhaska Reddy
Lab Rat
399 posts

I don’t think any thing similar to QPainter is available in QML. The purpose of qml as I see it is not to do low level painting, its more like building up on the existing simple qml items/components.

June 29, 2011

sigrid sigrid
Lab Rat
144 posts

In order to manipulate the image, you need to use QPainter, qml can’t do image manipulation. You can create your interface in qml however and create a qml item that exposes the painting functionality by using signals and slots and properties.

June 30, 2011

brucewuu brucewuu
Lab Rat
49 posts

thanks Vijay and sigrid , currently my solution is to implement a widget inheriting from QGraphicsProxyWidget , and export it to QML with qmlRegiesterType

 Signature 

wish all the best to you from
bruce wuu
Autodesk China Inc.
SW Developer
M&E Product Developerment Group
Work 137 6411 8921
.(JavaScript must be enabled to view this email address)

 
  ‹‹ Using Signals and Slots with Touch Events      New to Qt! Simple button to control peripherals ››

You must log in to post a reply. Not a member yet? Register here!