Click here to Skip to main content
11,505,744 members (60,501 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Linux file QT Writing makefile , +
How to write a file in qt ?
The title is going to be (lineedit text + .txt)?
and the location is fix to (~/.myproject)
I am new to qt and c++ and i am coming from since doen't work with Linux then i am learning qt.
Posted 20-Jan-13 9:07am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Writing a file is already totally unrelated to any dialog, and unrelated to UI in general. If you had the impression that is it related in .NET, this is only because you have no clue about .NET as well, no matter how much of code you created.

Ideally, writing files should not be related to QT. Nevertheless, by some reasons (I don't think this is a place to discuss them), file support is included in QT. Please see:[^],[^],[^].

With C++, you can directly use C++ API via <cstdio> or <iostream>, but see also the comments in the QT reference page reference above, the first one.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 532
1 F-ES Sitecore 380
2 Richard Deeming 270
3 CHill60 245
4 Richard MacCutchan 230
0 Sergey Alexandrovich Kryukov 1,087
1 Maciej Los 625
2 Peter Leow 540
3 F-ES Sitecore 525
4 OriginalGriff 487

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100