[Solved] Change tab size with QTextStream
General and Desktop
5
Posts
2
Posters
2.1k
Views
1
Watching
-
Hello,
My program write a number matrix in a QFile thanks to QTextStream. All the values are separated by a tabulation. But if a number is to big in the matrix, the following values are moved on the right side than the other lines. To avoid that, I would like to increase the size of tab when I write the file. Would anyone know how to do that?
-
Hi,
That is for the reader to work out. The tab will be translated to a \t character. The viewer should then be set to select the tab space. -
Which viewer do you use??? Notepad? Notepad++? Or is it the QTextBrowser?
For the QTextBrowser (QTextEdit inherrited) use the setTabStopWidth()