Results 1 to 3 of 3

Thread: Painting vector graphics...

  1. #1
    Join Date
    Oct 2009
    Location
    Sweden
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Painting vector graphics...

    Hi

    I'm working on this application where i have a QGraphicsView and QGraphicsScene with QGraphicsSvgItems on and would like to draw lines/curves etc between the QGraphicsSvgItem that i have in the scene.

    I'm unable to find (or understand how) a way to render/paint these lines in in my scene and it has to be scaleable graphics like the QGraphicsSvgItem i have in my scene.

    anyone that could point me in the right direction?

    /Robert

  2. #2
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Painting vector graphics...

    Please note QGraphicsSvgItems inherits from QGraphicsItem, so you should have the possibility to add them into the scene with QGraphicsScene::addItem ( QGraphicsItem * item )

  3. #3
    Join Date
    Oct 2009
    Location
    Sweden
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Painting vector graphics...

    Yes i know, you can acctualy add a QGraphicsSvgItems to the scene without using the QGraphicsItem base class. It works anyway.

    but that was not my problem, it was draw lines between the svg items in my scene. But that has been resolved by using the QPainterPath and add that to my scene. I was under the impression that it would be drawn in pixels but aparently not.... so the issue is resolved... well this issue anyway

    Thanks for a quick reply

    /Robert

Similar Threads

  1. Painting updates
    By QbelcorT in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 29th September 2008, 01:48
  2. Qt 4.4.0-rc1 painting performance
    By thomaspu in forum Qt Programming
    Replies: 0
    Last Post: 9th April 2008, 19:13
  3. Slow painting in QGraphicsView
    By JonathanForQT4 in forum Qt Programming
    Replies: 12
    Last Post: 16th July 2007, 10:54
  4. Painting in QCanvasView
    By JimBrown in forum Qt Programming
    Replies: 1
    Last Post: 11th May 2007, 23:29
  5. About painting
    By Pang in forum Qt Programming
    Replies: 3
    Last Post: 28th March 2007, 18:21

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.