[Qtce-preview-feedback] QMessageBox text wrapping problem
George H. Locktish
ghlocktish at praxiseng.com
Thu Apr 10 16:11:10 CEST 2008
I am using Qt 4.4 on WM5 and my application is displaying a QMessageBox
to the user. I have noticed that sometimes the message box does not
wrap the text. What happens in this case is that the dialog that is
displayed is made larger than the screen, and the user has to use the
stylus to position the window so that the OK button can be clicked.
However, if the text is made just a little bit longer, then the message
box wraps the text as expected.
I have attached a sample program that reproduces this issue.
I am running the application on the Windows Mobile 5.0 emulator.
Best regards,
George
#include <QApplication>
#include <QMessageBox>
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
QMessageBox::warning(NULL,"Test Message",
"This is a short message; fails to wrap");
QMessageBox::warning(NULL,"Test Message",
"This is a longer message; long enough that the text
wraps");
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20080410/4551e067/attachment.html
More information about the Qtce-preview-feedback
mailing list