×

Discussion Board

Results 1 to 9 of 9

Thread: Drawing in QML

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    3

    Drawing in QML

    I would like to use QML to draw different shapes or polygons such as triangles, diamonds, or simply diagonal lines. Is there a way to do this with the current version? I don't want to use any C++ code or use an image to do this, just QML. If its not currently available will a future version have these features?
    Thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Drawing in QML

    Yes,
    you can do this in Qt.

    Just check this link. : http://wiki.forum.nokia.com/index.ph...es_for_porting

    Best regards,

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    3

    Re: Drawing in QML

    Thanks for the link. It has a lot of cool stuff, but I didn't see how I can make shapes besides a rectangle, and curve its sides to make a circle. Is it there and I'm just missing it?
    Thanks again

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Drawing in QML

    At the moment QML is in preview mode and thus we don't have a forum for QML related questions. You should post your questions to qt-qml mailing list:
    http://lists.trolltech.com/pipermail/qt-qml/

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Location
    Finland
    Posts
    134

    Re: Drawing in QML

    Maybe this helps a bit...
    A circle is a rectangle with 1:1 dimensions and a radius of 180
    An oval is a rectangle with x:1 dimensions and a radius of 180

  6. #6
    Registered User
    Join Date
    Feb 2004
    Location
    france/rennes
    Posts
    76

    Re: Drawing in QML

    yes i feel this is frustrating to draw a simple triangle workaround would be to trace it to pixel buffer or using 1px rects ...

    --
    http://rzr.online.fr/q/qt
    http://rzr.online.fr/q/redak# redak : #FreE #TexT #EditoR : #Qt #QmL ported to #SymbiaN #BellE (#E7) and !n950club #n9 #MeeGo, test
    http://elinux.org/Mobile# Efforts to share a common base for GNU/Linux mobile communities ...
    http://go.cur.lv/files# files to be shared or email me

  7. #7
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Drawing in QML

    There is Polygon element for that.

  8. #8
    Registered User
    Join Date
    Feb 2004
    Location
    france/rennes
    Posts
    76

    Re: Drawing in QML

    in Qml ? i used a svg as workaround but it's not good for draging it since it will use the bounding box ...
    Last edited by www.rzr.online.fr; 2011-04-27 at 18:30. Reason: ok i shut up, thought i had better info
    http://rzr.online.fr/q/redak# redak : #FreE #TexT #EditoR : #Qt #QmL ported to #SymbiaN #BellE (#E7) and !n950club #n9 #MeeGo, test
    http://elinux.org/Mobile# Efforts to share a common base for GNU/Linux mobile communities ...
    http://go.cur.lv/files# files to be shared or email me

  9. #9
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Drawing in QML

    There are of course better ways to draw in Qt and you can create your own QML control to render your drawings if you so wish.

    Talking about frustrating things, what are all these links you have in your posts. Have you managed to increase your Google rating much?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Fast Drawing to Screen, How to use CDirectScreenBitmap properly ?
    By nadeshiko in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2010-02-24, 17:28
  2. Transparency proble in drawing PNG file.
    By prajapatmanoj in forum Symbian Media (Closed)
    Replies: 10
    Last Post: 2008-10-20, 05:33
  3. Which one is the fastest (in drawing) ?
    By Smori2002 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-11-12, 15:36
  4. Offscreen drawing and cursor
    By tolnaisz in forum Symbian
    Replies: 0
    Last Post: 2003-05-12, 17:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •