Results 1 to 2 of 2

Thread: SVG files in Qwt library

  1. #1
    Join Date
    Feb 2010
    Location
    Cuba
    Posts
    35
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default SVG files in Qwt library

    I have successfully used the qwt library, in a project (an ui editor for a SCADA). But I need to develop new widgets, but using SVG files. I would like to use the facilities provided by this library and I want to know if you are considering include svg files in Qwt Widgets to improve design quality
    If some one have an example...something, please
    Sorry my english... and thanks in advanced!

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: SVG files in Qwt library

    Quote Originally Posted by Hogwarts View Post
    But I need to develop new widgets, but using SVG files. I would like to use the facilities provided by this library and I want to know if you are considering include svg files in Qwt Widgets to improve design quality
    A SVG document is simply a collection of paint commands, that are mapped by QSVGRenderer ~1:1 to QPainter calls. So it's obvious, that using SVG doesn't improve any design quality only because of using it and you could always paint the same writing QPainter calls in a C++ code.

    What can be done with SVG is to make a widget more "themable" for the user, an idea Qt offers with the stylesheets. But ( beside of very basic stuff, that is supported in Qwt 6 ) this concept is only working for the Qt standard widget set.

    I can imagine several components of Qwt widgets, that could optionally use SVG objects - like the needle of a dial or even curve symbols on a plot widget. But I don't believe in using SVG for displaying something like the scales.

    So if you want to have a serious answer you need to be more specific about what components of which widgets you want to be displayed from a SVG object.

    Uwe

Similar Threads

  1. Replies: 2
    Last Post: 19th February 2011, 11:26
  2. Replies: 0
    Last Post: 21st June 2010, 10:59
  3. Replies: 4
    Last Post: 7th April 2010, 23:09
  4. Is it possible to link the qt library files into exe?
    By hashb in forum Installation and Deployment
    Replies: 2
    Last Post: 7th January 2010, 14:41
  5. Replies: 12
    Last Post: 17th June 2009, 05:34

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.