hi,
In QTextEdit if we enter ": )" it needs to change as image.. please guide me if u have any idea?
Thanks in advance.
Thanks & Regards,
Sivambigai.M
hi,
In QTextEdit if we enter ": )" it needs to change as image.. please guide me if u have any idea?
Thanks in advance.
Thanks & Regards,
Sivambigai.M
React on text changed signals or events.
Use setHtml and replace the :-) string with some html image tags.
hi
Thanks for your idea..
i have used
QObject::connect(textEdit, SIGNAL(textChanged()), this, SLOT(changePixmap()),Qt::QueuedConnection) ;
void CSmsWidget::changePixmap()
{
QString text =textEdit->toPlainText();
if (Qt::mightBeRichText(text)){
textEdit->setHtml(text);
}
}
but this is not working.. any idea?
Thanks in advance.
Do you think images come out of thin air?
replace the text :-) with something like <img source="...">
chris_helloworld (16th November 2010)
Bookmarks