Results 1 to 3 of 3

Thread: QSvgRenderer and 'pattern' element

  1. #1
    Join Date
    Feb 2010
    Posts
    96
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 5 Times in 5 Posts

    Default QSvgRenderer and 'pattern' element

    I have a grid based map system and I would like to convert the grid lines into Svg so they don't disappear as the end user zooms out of the map. I was looking at QSvgRenderer but it does not appear to support the 'pattern' element. The problem stems from the inabilty to find the pattern "url" as referened by the given ID od the 'pattern'. I am currently using PyQt 4.7.3 which supports Qt 4.7 (I think).

    Is the problem I am experiencing still persistent in newer versions of Qt?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QSvgRenderer and 'pattern' element


  3. #3
    Join Date
    Feb 2010
    Posts
    96
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 5 Times in 5 Posts

    Default Re: QSvgRenderer and 'pattern' element

    Obviously not the answer I am looking for.

    Right now I can create a grid that is as large as interger max (width)px x interger max (height)px and because it is a QBrush that paints a QImage as a texture it takes no time at all. Unfortunately the lines don't scale well and some disappear. I've tried with a 128,000 (width)px x 12,800 (height)px map and the result was pretty bad. I attempted with a long list of line elements.

    Is the 'pattern' element planned?

Similar Threads

  1. QSvgRenderer antialiasing
    By jonks in forum Qt Programming
    Replies: 4
    Last Post: 19th July 2013, 10:39
  2. Replies: 9
    Last Post: 23rd April 2012, 14:53
  3. QSvgRenderer and QWidget
    By lexqqq in forum Qt Programming
    Replies: 0
    Last Post: 31st October 2010, 12:51
  4. QSvgRenderer not always working
    By BlandSauce in forum Newbie
    Replies: 3
    Last Post: 29th March 2010, 05:08
  5. About QSvgRenderer
    By guher in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 11: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
  •  
Qt is a trademark of The Qt Company.