Revision as of 21:03, 17 September 2009 by
How to write data to a file in Qt
From Nokia Developer Wiki
Platform(s): S60 3rd Edition FP1, S60 3rd Edition FP2, S60 5th EditionArticle
Keywords: QFile, QTextStream,Qstring, Text Label
Created: (07 Jan 2009)
Last edited:(17 Sep 2009)
This code snippet demonstrates File write operation in Qt for S60.
- Install latest Qt for S60 see Qt for S60 - Installation packages
- Check this link for installation guide: How to install the package.
- Go through this article: Getting started with Qt for S60
int main(int argc, char *argv)
QApplication app(argc, argv);
file.open(QIODevice::WriteOnly | QIODevice::Text);
out << "This file is generated by Qt \n";
- Above code will generate the file out.txt into c: of your emulator. You can find it at this path.
- For 5th edtion SDK
- For 3rd edition SDK