FYI, there's nothing inherently wrong with slashes in Windows.
fopen("C:/foo/bar.ext") will work fine. Both slash and backslash should be
considered valid separators. The only place slashes don't work is the shell, as
they're considered the start of command line options.
Chad
Désirée Görrisen wrote:
Hi,
I think its not an OpenSG problem, but a Qt problem.
As far as I know, the Qt file selection dialogs return filenames with
slashes, even if you are working on a windows platform, (where you would
expect backslashes).
We are dealing with it, since we are using Qt together with OpenSG but
also using Qt in combination with other libraries.... I think you have
to get used to immediately change slashes to backlashes after getting a
file name from a Qt dialog.
Desiree
Dirk Reiners schrieb:
Hi Gerrit,
On Fri, 2004-09-03 at 04:39, Gerrit Voss wrote:
Hi,
yep, this is one of the really ugly problems nobody came up with a good
solution for. The simple fix is add the following code before you call
read :
for(int ui = 0; ui < filename.length(); ui++)
if(filename[ui] == '/')
filename[ui] = '\\';
The problem is that the loader tries to guess if you provide a unix or
windows path and in this case it guesses wrong because qt returns /
instead of \ as the dir sep.
Hm, wasn't the PathHandler supposed to detect the system it's running on
and map the separators to the correct one? What am I missing?
Thanks
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
<http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click>
_______________________________________________
Opensg-users mailing list
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
_________________________________________________________________
Desiree Görrissen
[ geschäftsführerin / informatikerin ]
eMail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
graphiX
Gesellschaft für Computergrafik, Numerik und Internetdienste mbH
Rochusstr. 230-234, 53123 Bonn, Germany
fon: +49 228 52674-0 fax: +49 228 52674-44
http://www.graphix.de
__________________________________________________________________
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users