View Full Version : Simple word-wrapped popup box

9th April 2008, 20:05
Is there a simple way to display a large popup box with word-wrapped text? I have tried creating an actual QMessageBox object rather than using the static methods, and then setting the geometry to a larger size, but the text still truncates at the edge of the window. setTextFormat does not look like it will allow me to make the text word-wrapped.

9th April 2008, 21:01
You must have done something wrong. QMessageBox wraps the text perfectly for me just by itself (with static methods). You might want to try and wrap it inside <p> tags, just to make sure it sees it as html (I don't know if it is required but it shouldn't hurt).