Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ¿Canvas in QtQuick 1.1?
Qt 6.12 LTS is out! See what's new in the release blog

¿Canvas in QtQuick 1.1?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 935 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.
  • Dante LeonciniD Offline
    Dante LeonciniD Offline
    Dante Leoncini
    wrote on last edited by
    #1

    You can draw lines , curves, circles and shapes in QtQuick 1.1 ?
    I did not find any example to do.

    it could create a dynamic image that serves as a canvas ?
    QML tell that c ++ to draw and return the image?

    I try to make a style program Mspaint (bitmap)
    and other Inkscape style and autocad (vector)

    also I wanted to do something similar to what happens in the video game worms
    That scenario is an image and when it explodes draw something so dynamic alpha channel. and worms detect the alpha channel and to walk and hit the stage.

    1 Reply Last reply
    0
    • David.GD Offline
      David.GD Offline
      David.G
      wrote on last edited by
      #2

      Is there a reason you can't use QtQuick 2.5+? You can draw in the canvas: Examples here

      1 Reply Last reply
      0
      • Dante LeonciniD Offline
        Dante LeonciniD Offline
        Dante Leoncini
        wrote on last edited by Dante Leoncini
        #3

        I can not use QtQuick 2.5+ because I'm doing the program for symbian . I saw that in QtQuick 2.5+ is easy to do.
        The closest thing I found is to create a " Image " in QML and update it with c ++ still do not probe and not so fluid that can be .

        The other thing I came up with is to use the shadereffect . as only it works on cell and linux fails I could not experiment with that. but from what I saw I can not use the shader effect to return results. for example, that pixels are transparent and which are not .

        edit: in this video you can see what I 'm doing. I am speaking in Spanish . still she has no subtitles
        https://www.youtube.com/watch?v=C4aJ_J401Qc&feature=youtu.be

        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
        • Unsolved