How can I take the contents of a docx file and put them in TextEdit?
-
How can I take the contents of a docx file with text in the same color and font format and put them in textedit?
-
How can I take the contents of a docx file with text in the same color and font format and put them in textedit?
@vuduongthanh Did you try copying and pasting? Is that what you want?
-
@vuduongthanh Did you try copying and pasting? Is that what you want?
@JonB I want to get it by passing in a path to the .docx file then the code will take the data from the docx file and pass it to TextEdit on the screen
-
@JonB I want to get it by passing in a path to the .docx file then the code will take the data from the docx file and pass it to TextEdit on the screen
@vuduongthanh
Then you need a library which can readdocx
format files. Unless they are just HTML you can't put them into aQTextEdit
. Might be possible viaQAxObject
. https://forum.qt.io/topic/95874/read-doc-and-docx-files/11. There may also be some libraries written for or working with Qt/C++. -
@vuduongthanh
Then you need a library which can readdocx
format files. Unless they are just HTML you can't put them into aQTextEdit
. Might be possible viaQAxObject
. https://forum.qt.io/topic/95874/read-doc-and-docx-files/11. There may also be some libraries written for or working with Qt/C++.@JonB Thank you very much