Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to do grahics options with QML

    General and Desktop
    3
    4
    2184
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brucewuu last edited by

      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 ~~

      wish all the best to you from
      bruce wuu
      Autodesk China Inc.
      SW Developer
      M&E Product Developerment Group
      Work 137 6411 8921
      bruce.wu@autodesk.com

      1 Reply Last reply Reply Quote 0
      • T
        thisisbhaskar last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • S
          sigrid last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • B
            brucewuu last edited by

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

            wish all the best to you from
            bruce wuu
            Autodesk China Inc.
            SW Developer
            M&E Product Developerment Group
            Work 137 6411 8921
            bruce.wu@autodesk.com

            1 Reply Last reply Reply Quote 0
            • First post
              Last post