Is there QPath::Combine in QT4?

前端 未结 3 1384
既然无缘
既然无缘 2021-02-13 15:28

I need a similar to .NET method for safely combining path parts without worrying for platform specifics of the path separator.

Is there such class and method in QT4?

3条回答
  •  感动是毒
    2021-02-13 16:15

    You may use the static methods QDir::fromNativeSeparators and QDir::toNativeSeparators and then use / everywhere when manipulating the path.

提交回复
热议问题