Hello,
I'm new to Qt. I need a text editor, with the following features
- page header / footer
- margins
- replace text
- export to PDF.
It's possible with Qt directly or need I to use other software.
Regards,
Luc
Hello,
I'm new to Qt. I need a text editor, with the following features
- page header / footer
- margins
- replace text
- export to PDF.
It's possible with Qt directly or need I to use other software.
Regards,
Luc
Start with a QTextEdit, and for the PDF export functionality, have a look at QPrinter - you can set the output type to PdfFormat.
Hi
All these requirement are ppossible in Qt
Use QTextBrowser or QTextEdit
- page header / footer
need some simple implementation
- margins
- replace text
need some simple implementation, Hardly 1 slot with 2-3 lines of code
This is by default so no probs
- export to PDF.
Here u have to use xpdf 3rd party library to do so. its easy though
No need for 3rd party libraries for exporting content to PDF as fatjuicymole pointed out. There is a simple example in Qt documentation about how to write PDF file, see QPrinter::isValid
Can you tell me where I can find some example for implementing a page header/footer ?
If you use Linux, you certainly know Kate, the Advanced Text Editor.
So, why don't download the full Kate source from http://www.kate-editor.org/.
Bookmarks