Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, June 2007
QMessageBox cannot show long message properly


Message 1 in thread

Hi,

Under Qt 4.3, there is a problem to show long message with space in
string. QMessageBox tries to show the message in 2 lines, but only one
line space was given, message was hidden. 

Remove or add 1 char into the string, will show properly.

Here is the example,

#include <QApplication>
#include <QMessageBox>
int main(int argc, char *argv[])
{
   QApplication app(argc, argv);

   QMessageBox::information(0, "App", 
       "ABCDEFGHIJKLMNOPQRSTUVWXYZabcd fghijklmnopq", "Ok" );	
   
   // return app.exec();
}

Confirm please.

Regards,
Howard Xia.

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

Howard Xia wrote:
> 
> #include <QApplication>
> #include <QMessageBox>
> int main(int argc, char *argv[])
> {
>    QApplication app(argc, argv);
> 
>    QMessageBox::information(0, "App", 
>        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcd fghijklmnopq", "Ok" );	
>    
>    // return app.exec();
> }
> 
> Confirm please.

I am unable to reproduce this with 4.3.0 final. Can you please tell us 
which Qt 4.3 package (i.e snapshot, final, beta, rc) and the platform 
you are using?

Thank you,
Girish

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 3 in thread

Thanks for the detailed description. With the font settings you 
detailed, I am able to reproduce it here. We will try to fix this for 4.3.1.

Girish

Howard Xia wrote:
> Hi Girish,
>
> I did further testing, this seems to happen only on the following
> settings via qtconfig.
>
> GUI Style : Windows
> Default Font
>    Family: Courier
>    Style: Normal
>    Point Size: 12
>
> Changing any of above, seems no problem.
>
> I am trying on Qt 4.3.0 final.
>
> Howard.
>
> On Wed, 2007-06-06 at 18:28 +0200, Girish Ramakrishnan wrote:
>> Qt 4.3.0 was released last week :) If you are a commercial customer, 
>> please contact our support department if you not received any 
>> notification. Also, can you please try your example with 4.3.0 final and 
>> let me know? We tried this on a couple of machines here and are unable 
>> to reproduce it.
>>
>> Girish
>>
>> Howard Xia wrote:
>>> Hi Girish,
>>>
>>> I am using Qt 4.3 RC1, the one was announced on May 8 :
>>>
>>> --------------------------------------------------------
>>>                               From: 
>>> Trolltech ASA <sales@xxxxxxxxxxxxx>
>>>                           Reply-To: 
>>> Trolltech ASA <sales@xxxxxxxxxxxxx>
>>>                                 To: 
>>> Howard Xia
>>> <howard.xia@xxxxxxxxxxxx>, Divestco
>>> Inc. <brian.klatzel@xxxxxxxxxxxx>
>>>                            Subject: 
>>> Qt 4.3 and Qtopia Core 4.3 Release
>>> Candidates Now Available
>>>                               Date: 
>>> Tue,  8 May 2007 16:42:01 +0200
>>> (CEST)  (08:42 MDT)
>>>
>>> --------------------------------------------------------
>>>
>>> Platform is 
>>>
>>> uname -a
>>> Linux tsxia 2.6.16.20 #1 SMP Fri Oct 6 16:36:09 MDT 2006 i686
>>>
>>> We haven't received the announce of Qt 4.3.0 fanal yet.
>>>
>>> I attached the image file for your reference.
>>>
>>> Thanks,
>>> Howard
>>>
>>> On Wed, 2007-06-06 at 08:22 +0200, Girish Ramakrishnan wrote:
>>>> Howard Xia wrote:
>>>>> #include <QApplication>
>>>>> #include <QMessageBox>
>>>>> int main(int argc, char *argv[])
>>>>> {
>>>>>    QApplication app(argc, argv);
>>>>>
>>>>>    QMessageBox::information(0, "App", 
>>>>>        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcd fghijklmnopq", "Ok" );	
>>>>>    
>>>>>    // return app.exec();
>>>>> }
>>>>>
>>>>> Confirm please.
>>>> I am unable to reproduce this with 4.3.0 final. Can you please tell us 
>>>> which Qt 4.3 package (i.e snapshot, final, beta, rc) and the platform 
>>>> you are using?
>>>>
>>>> Thank you,
>>>> Girish
>>>>
>>>> To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
>>>>
>

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx