tags:

views:

44

answers:

3

Hi,

  QString fe = "C:\\Program Files\\Autodesk\\Maya2008\\bin\\imconvert.exe "; 

This line gives a problem because of space between Program and Files. How is it possible to decode it so that it is treated as one complete string

Brgds,

kNish

+3  A: 

You can use a QFileInfo object to store it. This object accepts all path even if they have spaces. In addition you have some functions to do all checks you need before using it.

Patrice Bernassola
A: 

Use QUrl::toPercentEncoding static method

Kamil Klimek
A: 

In windows you would do:

QString fe = "\"C:\\Program Files\\Autodesk\\Maya2008\\bin\\imconvert.exe\""; 
Phil Hannent