basically replacing all the underscores with spaces is a simple task.
QString qstr
= "____aaaa____bbbb____cccc";
qstr.replace("_", " ");
textEdit->setText(qstr);
QTextEdit textEdit;
QString qstr = "____aaaa____bbbb____cccc";
qstr.replace("_", " ");
textEdit->setText(qstr);
To copy to clipboard, switch view to plain text mode
and as far as centering under the other words you could do something like this
int index;
index = large.indexOf("AAAA");
textEdit->setPlainText(small);
QTextEdit textEdit;
QString large = "AAAA BBBB CCCC";
QString small = "aaaa bbbb cccc";
int index;
index = large.indexOf("AAAA");
QTextCursor c(textEdit->textCursor());
c.movePosition(QTextCursor::setPosition(index,QTextCursor::KeepAnchor));
textEdit->setPlainText(small);
To copy to clipboard, switch view to plain text mode
maybe something like that will work
Bookmarks