I think this chunk of code is the core:
void textdialog::pop()
{
ok
= QMessageBox::information(this, tr
("Popped!"), tr
("<p>You had entered:</p>""<p>%1</p>") .
arg(text
));
}
void textdialog::pop()
{
QString text = textedit->toHtml();
QMessageBox::StandardButton ok;
ok = QMessageBox::information(this, tr("Popped!"), tr("<p>You had entered:</p>""<p>%1</p>") .arg(text));
}
To copy to clipboard, switch view to plain text mode
QMessageBox can take inputs.
when the OK button is pressed, it calls the pop() function.

Thanks everyone, I did it. Thanx Michiel for the understanding you showed. Thanks to high_flyer for challenging me
.
Thanks a lot to Sunil.Thaha for his patience when i disturbed him with silly doubts and for guiding me through each n every step.
Bookmarks