Results 1 to 2 of 2

Thread: pathsvg examples

  1. #1
    Join Date
    Nov 2015
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default pathsvg examples

    Hi

    I am attempting to use some svg in qml but with no success. Located some examples on the web and tried all of them but with no luck. I have included a sample of code I would to use. Thanks for your help.

    Qt Code:
    1. PathView {
    2. anchors.fill: parent
    3. Path {
    4. startX: 0; startY: 0
    5.  
    6. PathSvg { path: "L 0 200 L 200 200 z" } // green
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by anda_skoa; 9th March 2019 at 10:09. Reason: changed [quote] to [code]

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: pathsvg examples

    You are adding the Path object as a "child" of PathView.
    You need to write into the PathView's "path" property

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 7th March 2013, 00:30
  2. Qwt examples
    By nitriles in forum Qwt
    Replies: 7
    Last Post: 6th August 2011, 04:07
  3. examples and Ssl
    By szarek in forum Newbie
    Replies: 13
    Last Post: 21st July 2010, 22:33
  4. Qwt examples
    By 31512 in forum Qwt
    Replies: 11
    Last Post: 3rd July 2008, 05:00
  5. Qt 3.x Examples
    By ball in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2006, 13:44

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.