PDA

View Full Version : how to add images to QMessageBox dynamically?



satya@sipl
26th July 2012, 07:54
Hi everyone.

I need a pop-up message with some data and image. Both data and image will be dynamically put the pop-up.

how can I do that?

ChrisW67
26th July 2012, 08:05
By spending 30 seconds scanning the QMessageBox documentation rather than relying on other people to do it for you. When you still cannot work it out then come back and tell us what you tried.

satya@sipl
26th July 2012, 08:22
I have tried to use the documentation. But with the help of the documentation I can use text inside the message box like the following
QMessageBox noc;

QString er=tr("We are talking about a short stop at the end of a word in reading the Koran, with the intention to continue reading.");
noc.setText(er);
noc.exec();
But I'm not able to resize this and put any image inside the body with the text. So can you help on this now?:confused: