Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, April 2007
Cannot show navigable SVGs in Qt4


Message 1 in thread

Something in the direction of Andreas question (April 14th) which 
was unanswered.

I'm trying to have a "navigable" svg (==following links to other 
svg files) like this one, in a qt4 app :
http://faust.grame.fr/exemples/diagram/freeverb.dsp-svg/process.svg

Using QSvgWidget( "process.svg", parent); shows the first svg 
file but it doesn't follow the links. Is it possible to enable 
this navigability someway?

Since firefox --and i guess most of the modern browsers-- handle 
svg with links, we also tried to open a browser as an alternative:

QDesktopServices::openUrl( "process.svg" );

But in my Ubuntu Feisty box what it's opened is EyeOfGnome as 
shown here which do show the svg file but doesn't allow
navigability:
http://iua-share.upf.edu/wikis/clam/index.php/Image:OpeningFaustSvgInEog.png
So the question, in this case is: is it possible specify the 
preferred browser?

Thanks
Pau

--
 [ signature omitted ] 

Message 2 in thread

Pau Arumi schrieb:
> ..
> So the question, in this case is: is it possible specify the preferred
> browser?

I don't know how QDesktopServices::openUrl is implemented, but you might
be lucky with setting the environment variable BROWSER which seems to be
interpreted by various other applications.

A link which backups my "Einstein theory" is here ;)

 "linux browser path"
 http://einstein.phys.uwm.edu/forum_thread.php?id=4831

Cheers, Oliver

--
 [ signature omitted ] 

Message 3 in thread

En/na Till Oliver Knoll ha escrit:
> Pau Arumi schrieb:
>> ..
>> So the question, in this case is: is it possible specify the preferred
>> browser?
> 
> I don't know how QDesktopServices::openUrl is implemented, but you might
> be lucky with setting the environment variable BROWSER which seems to be
> interpreted by various other applications.


BROWSER=firefox ./myApp
It worked, thanks! :)
And if I define a non existing browser it uses the default (eog
here)

However I'm still interested for a native way to do navigable svg
within qt4

Pau

--
 [ signature omitted ]