我在qt3.3.3里:
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
1 cout<<"Hello, let's plot !"<<endl;
2 QString strOpenFile;
QFile file(strOpenFile);
cout<<strOpenFile<<endl;
temp = file.size();
cout<<temp<<endl;
都有结果:
1 Hello, let's plot !
2 /data3/chenxh/haozj/Qt/plot/drawline/accum.txt
10750