Results 1 to 2 of 2

Thread: Simple word-wrapped popup box

  1. #1
    Join Date
    May 2006
    Posts
    58
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Simple word-wrapped popup box

    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.
    Last edited by hardgeus; 9th April 2008 at 20:28.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Simple word-wrapped popup box

    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).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.