Write in html file from qt
General and Desktop
5
Posts
2
Posters
1.6k
Views
1
Watching
-
hello
help me please i want to write in the body of this html file from qt so it means that i want to write in a textedit and by cliking on a button the html will be opned and the text that i wrote will be appear in this file i hope that you interstand what i mean because i know that’s my English is very bad
-
Hi,
You can use QTextEdit for the text edition and QFile to write the content of the QTextEdit to a file.
A QPushButton to call a slot where you will write the file content and you should be good to go.
On a side note, this question is not related to "Qt in education", please choose your sub forum more carefully
-
Then I would recommend going through Qt's examples and demos. They contain all you need to get your project done