On Tue, Dec 1, 2009 at 6:43 PM, Owen Williams <[email protected]> wrote:
> This is a nitpicky / curiosity question, but is there no prettier way to
> combine paths in QT than 'newpath = foo + "/" + bar;'?  I would have
> thought there would be crossplatform issues with the forward slash,
> though the fact that mixxx works on windows would seem to contradict
> this assumption.
>
> In python, there's system.path.join for this purpose, and other
> platforms have a similar path.combine function... Is there no such thing
> in qt land?  It's not really a big deal, it just looks ugly to me :).

You're right. The forward slash should go--it works on Windows because
the Windows APIs internally support using a forward slash as a
separator. I'm not sure what the Qt equivalent to path.join is though.

-Nick (not dead! just hiding!)

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to