[vtkusers] Example VTK with Qt

David Doria daviddoria at gmail.com
Fri Aug 17 08:11:02 EDT 2012


On Fri, Aug 17, 2012 at 8:06 AM, Jothybasu Selvaraj <jothybasu at gmail.com> wrote:
> use
>
> reader->SetFileName(filename.toLatin1());
>
> Jothy

Jothy, that should be

fileName.toLatin1()

('fileName' was the QString while 'filename' was the c_str)

right? I've always just used .toStdString().c_str() - what would toLatin1() fix?

David



More information about the vtkusers mailing list