Hi I've written small notepad. This is part of the code is responsible for saving text to some txt or doc file.

http://wklej.org/id/779292/

It's a slot. Of course the code works, the written text is saved to a txt file. But it is not my purpose. My simple notepad has a few functions about font manage. Here is the problem. The settings about text(font, size, color) aren't saved, only text. When I open my saved txt file, the text is right but the other settings like font or justify are forgot.

Sorry for my mistakes in english. Thanks in advance for your help.