Hello,
I have texedit ..
and I change font size ...
textEdit->setFontPointSize(12);
textEdit->setFontPointSize(12);
To copy to clipboard, switch view to plain text mode
and then everythink is ok, but if I add img
textEdit->insertHtml("<img src=\""+emoticonFull+"\" alt=\""+emoticon+"\" />");
textEdit->insertHtml("<img src=\""+emoticonFull+"\" alt=\""+emoticon+"\" />");
To copy to clipboard, switch view to plain text mode
then text font before img is ok but after img is not this size ... and how can I change font to 12 after img ?
I try:
int iRealFontSize = textEdit->fontWeight(); // fix
textEdit->insertHtml("<img src=\""+emoticonFull+"\" alt=\""+emoticon+"\" />");
textEdit->setFontWeight(iRealFontSize); // fix
int iRealFontSize = textEdit->fontWeight(); // fix
textEdit->insertHtml("<img src=\""+emoticonFull+"\" alt=\""+emoticon+"\" />");
textEdit->setFontWeight(iRealFontSize); // fix
To copy to clipboard, switch view to plain text mode
but it is not working ....
Text before img and after I add by
textEdit
->insertPlainText
(QString(strData
[i
]));
textEdit->insertPlainText(QString(strData[i]));
To copy to clipboard, switch view to plain text mode
Example:
Bookmarks