[Qt-interest] about absolute

pengliang(彭亮) pengliang at founder.com
Tue May 25 05:34:22 CEST 2010


Hey all

       Please see the snippet below:

      file_path = ":/instruction_params_chinese.xml";

QFile file(file_path);

I don’t know why qt don’t know where is file_path in this program, but when I set file_path is an absolute path, It is ok.

This program was executed on Linux.

Anybody can help me?

Thanks

Ken

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100525/99158215/attachment.html 


More information about the Qt-interest-old mailing list