I know, the question is Nubian, but all the same. I didn't work with Qt.
Some operations are QTextStream with QTextStream .
Then I try to delete it through delete and the compiler gives an error. I look at methods and do not find anything similar to methods close , Dispose (this is already from C #).
So how to remove instances of similar objects? There is no wish to catch a memory leak.
Error text:
error: C2440: delete: unable to convert "QTextStream" to "void *" There is no user-defined conversion operator available or the operator cannot be called to perform this conversion
QTextStream qtin(stdin); QString input = qtin.readLine(); delete qtin;
new, and therefore it cannot be deleted with the help ofdelete. - PinkTux