[Qt-interest] about absolute
Ulf-Alexander v. Ceumern-Lindenstjerna
ceumern at vrmagic.com
Tue May 25 10:56:15 CEST 2010
The colon (":") in front of the path indicates that the file is inside
the Qt resource of your program:
http://doc.trolltech.com/4.6/resources.html
See the documentation for details.
Regards, Ulf
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of pengliang(??)
> Sent: Tuesday, May 25, 2010 5:34 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] about absolute
>
> 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
>
>
>
>
More information about the Qt-interest-old
mailing list