Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to do grahics options with QML
Qt 6.11 is out! See what's new in the release blog

How to do grahics options with QML

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.0k Views 1 Watching
  • 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 Offline
    B Offline
    brucewuu
    wrote on last edited by
    #1

    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
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      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
      0
      • S Offline
        S Offline
        sigrid
        wrote on last edited by
        #3

        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
        0
        • B Offline
          B Offline
          brucewuu
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved