[Qt-interest] Relative paths in style sheets (-stylesheet vs. qApp->setStyleSheet())
R. Reucher
rene.reucher at batcom-it.net
Fri Jun 12 21:59:26 CEST 2009
Hi list,
I'm using Qt 4.5.1.
When I create style sheets with relative paths (image URLs) in them and load
them with the command line option -stylesheet, everything works as documented
(http://doc.qtsoftware.com/4.5/qapplication.html#QApplication):
--
Relative URLs in the Style Sheet file are relative to the Style Sheet file's
path.
--
But when loading the file's content and setting up the style sheet using
qApp->setStyleSheet(content);
it will only work if the current working directory is the same as the
directory of the style sheet and its images.
Is this wanted?
Thanks, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
Wiker's Law:
Government expands to absorb revenue and then some.
More information about the Qt-interest-old
mailing list