[SOLVED] Problem with QMessageBox
-
By using this code
@ QString mex = "Error while reading vector.<br/><br/>Please check in:<br/><br/> " + tmpStrTmp ;
QMessageBox::critical(this, "Error", mex);@the QMessageBox looks like this:
https://drive.google.com/a/hydros.ch/file/d/0B7vJt21ZesT0bkJMY2Y2dFFKNTA/edit?usp=sharing
and with this code
@ QString mex = tmpStrTmp ;
QMessageBox::critical(this, "Error", mex);@the QMessageBox looks like this:
https://drive.google.com/a/hydros.ch/file/d/0B7vJt21ZesT0SGIwN3FxM0Q1c2s/edit?usp=sharing
Can you see the photos?
-
you know? I solved the problem....< and > caused the problem, I replaced them with & lt; and & gt; and worked! I think because "mex" contains html tag (<br/>) and so it interpreted all like html....I don't know how to explain it with the right words, but I hope you understood. Thank you Clochydd, I really appreciate your help! Have a nice day? evening? bye