Hi, there is a function, which does that in qt, but has to be called explicitly I think:
QString QDir::convertSeparators ( const QString & pathName ) [static] (from: http://doc.trolltech.com/3.3/qdir.html#convertSeparators ) but probably it will end up the same. Greetings, Daniel On Fri, Sep 03, 2004 at 04:39:40PM +0200, 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 > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > > > > > > -- > _________________________________________________________________ > > Desiree Go:rrissen > [ gescha:ftsfu:hrerin / informatikerin ] > eMail: [EMAIL PROTECTED] > graphiX > Gesellschaft fu: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 > __________________________________________________________________ > -- Daniel 'mcJack' Walz Student at the Otto-von-Guericke Universität Magdeburg email: [EMAIL PROTECTED] icq#: 70137980 pgp: DAF0B6EF at: wwwkeys.de.pgp.net http://www.cs.uni-magdeburg.de/~dwalz/ ------------------------------------------------------- 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_idP47&alloc_id808&opÿick _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
