I've tried the QT forums for this but the KDE development section
looks like a ghost town.
The problem is that I'm attempting to have a class that holds a
QFile, QTextStream and KTextEdit and will save the file when
a button is pressed. These are in a QPtrList and displayed on
a QTabWidget.
The trouble is though that I can't compile the code without the QFile
being declared in the class constructor but it also needs to be accessed
by a slot to save the file and the same runs for the QTextStream.
I attempted to use pointers to fix this but the line:
Code:
streamPtr->operator<<( filePtr )
caused a seg fault (though I didn't expect much of it).
Would anybody know how to either get the pointer method to work
or better approach?