×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Lightbulb How to load SVG directly from .SVG file? (cannot use .mif)

    Hi,

    I'm looking for a way to load SVG image directly from .SVG file (downloaded from the server so cannot use .mif containers here :/ ) into e.g. CFbsBitmap and display it in my application. Is it possible? What class/API should I have a closer look at? Any point, tip, direction would be great!

    I'd really appreciate anyone could shed some light on this problem. Thanks in advance!

    Kind regards.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load SVG directly from .SVG file? (cannot use .mif)

    As far as i know SVG files can't be loaded directly via Symbian APIs. for same reason most of applications avoid transferring SVG files from server to client.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Unhappy Re: How to load SVG directly from .SVG file? (cannot use .mif)

    If not by Symbian C++ API then perhaps is it at least feasible in QT? Or the same limitation?

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load SVG directly from .SVG file? (cannot use .mif)

    Quote Originally Posted by geran View Post
    If not by Symbian C++ API then perhaps is it at least feasible in QT? Or the same limitation?
    Desktop Qt has a module called QtSvg which has its Svg render class. donot know same thing works on Qt4S60 also .

  5. #5
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to load SVG directly from .SVG file? (cannot use .mif)

    Hi,
    just checked the Forum Nokia KB and they list it as supported.

    So using Qt could be a possible way to tackle it.

    All the best
    Tam Hanna

    As this:
    Supported Qt modules in Qt 4.6 for the Symbian platform release

    The following Qt modules are available in the Qt 4.6 for the Symbian platform release. In cases where there are limitations in the support, these are indicated. Unsupported Qt modules are listed separately below.

    Qt Module


    Description


    Limitations

    QtCore


    QtCore contains the core non-GUI functionality of Qt. For example, Event, text, and time classes are part of this module. All other Qt modules rely on QtCore.


    *

    QProcess IPC is not supported (cannot be treated as I/O device)
    *

    QProcess termination from another process is limited by platform security
    *

    No support for QtConcurrent

    QtGui


    QtGui extends QtCore with GUI functionality. Widget-, graphics-, image-, paint-, and style-related classes are part of QtGui. Classes for UI events are also part of this module.


    *

    QPrinter and friends, QSystemTrayIcon, QAccessible and friends are omitted
    *

    QClipboard is not supported between native and Qt applications, but it is supported between two Qt processes
    *

    QDrag and friends are supported only inside a single Qt process.

    QtNetwork


    QtNetwork offers high-level classes ( QHttp , QFtp ) that implement specific application-level protocols and lower-level classes ( QTcpSocket , QTcpServer , QUpdSocket ) to provide easier network programming.


    *

    IPv6m Multicast and NTML authentication are not supported.

    QtScript


    The QtScript module can be used to make Qt applications scriptable using ECMAScript, the standardized version of JavaScript. With the QtScript module it is possible, for example, to add scripting support to a Qt application and thus allow users to add their own functionality in addition to what the application already provides.


    -

    QtSql


    Classes for database integration using SQL. The module has SQLite3 implementation for Symbian OS as a backend.


    -

    QtSvg


    The QtSvg module provides classes for rendering and displaying SVG content.


    QtSvg supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are not supported.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load SVG directly from .SVG file? (cannot use .mif)

    so does that all about ?

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Cool Re: How to load SVG directly from .SVG file? (cannot use .mif)

    Quote Originally Posted by tamhanna View Post
    QtSvg supports the static features of SVG 1.2 Tiny.
    For me it seems that SVG support in QT and for C++ applications is not the same implementation as for the latter one they claim it supports only 1.1+ Tiny. Would that mean it makes it even more sure there is no such possiblity for C++ apps? Looks like another reason to move to QT development

    Thank you all for your input!

  8. #8
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to load SVG directly from .SVG file? (cannot use .mif)

    Quote Originally Posted by geran View Post
    For me it seems that SVG support in QT and for C++ applications is not the same implementation as for the latter one they claim it supports only 1.1+ Tiny. Would that mean it makes it even more sure there is no such possiblity for C++ apps? Looks like another reason to move to QT development

    Thank you all for your input!
    Hi,
    you could of course build your app using Symbian, and forget Qt mostly....

    As for salvaging the code: it is open-source, so theoretically go ahead.

    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  9. #9
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Thumbs down Re: How to load SVG directly from .SVG file? (cannot use .mif)

    Quote Originally Posted by tamhanna View Post
    As for salvaging the code: it is open-source, so theoretically go ahead.
    Tam
    If just my project schedule was that elastic so in practice we'd rather switch to raster graphics being downloaded from the server (Hasta la vista, scalability)

  10. #10
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: How to load SVG directly from .SVG file? (cannot use .mif)

    Quote Originally Posted by geran View Post
    If just my project schedule was that elastic so in practice we'd rather switch to raster graphics being downloaded from the server (Hasta la vista, scalability)
    I almost wanted to suggest that. KISS
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  2. Loading SVG icons directly from .svg files
    By Sectoid in forum Symbian
    Replies: 1
    Last Post: 2008-02-15, 11:52
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×