QTextEdit, (QPLAINTEXTEDIT) Need Help with making a copy to another QTextEdit along with its Color & other Format such as Bold for each letter...
-
QTextEdit, (QPLAINTEXTEDIT) Need Help with making a copy to another QTextEdit along with its Color & other Format such as Bold for each letter...
Hi, I trying out several ways of making a copy. However, I am using QTextCursor to make the selection. Now That the text is selected in a QTextEdit Document I want to copy each line, one at a time into a different QTextEdit document.
Whatever way I have tried. will not copy the Color Info, & Bold info of each Letter in the Document.I have tried :
Copying text as selected by QTextcursor --- just copies over Black Colored text into QTextEditCopying the input and output over with insertasHtml & insertHtml methods, the result was a jumbled up document in 2nd QTextEdit
CUT & PASTE submethods --- not workingI would love to know the proper method of copying over the QTextCursor's selected text, along with Color info into a 2nd QTextEdit. This is so that both QTextEdits look the same!
-
Hmm, that is an interesting solution. I will dig into how to set StyleSheet from one to the other. I had been using properties boxes and dynamic setting of the Fonts only. I will look into copying one style sheet over to the other to see if this will do the trick.