[SOLVED] smiles in textedit
-
Detect and replace the smiles with a proper images as it suggested at "this thread at Qt Center":http://www.qtcentre.org/threads/36004-how-to-add-smilies-in-QTextEdit.
-
the below code is for smiles. currently if i type :) plus :) only the first smiles is shown. i need a "do" "while" or something to get all the smiles shown. the below code is broken. it is suppose to get all the smiles shown.
@void MainWindow::changePixmap()
{
while (QRegExp reg(":\)")==true){
QTextCursor cursor(ui->roomTextEdit->document()->find(reg));if (!cursor.isNull()) {
cursor.insertHtml("<img >");
}
}
}@