Results 1 to 2 of 2

Thread: pathsvg examples

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2015
    Qt products
    Qt4 Qt5

    Default pathsvg examples


    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
    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 11:09. Reason: changed [quote] to [code]

  2. #2
    Join Date
    Jan 2006
    Graz, Austria
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    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


Similar Threads

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

Tags for this Thread


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.