Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, February 2007
Incorrect icons in QMessageBox on OS X


Message 1 in thread

Hey all.  Here's a strange, but hopefully simple, one.  I'm using  
QMessageBox::Information and QMessageBox::Warning on Mac OS X.  The  
icon that is showing up in the dialogs is the generic console app  
icon for OS X.  On one occasion, it was the generic GUI application  
icon, but I cannot reproduce it now.

Here's an example of how I'm calling the method ("this" is an  
instance of QMainWindow):

QMessageBox::information(this, "Title",
                          "Body",
                          QMessageBox::Ok);

I searched the qt-interest archives as well as the bug tracker, but  
didn't see anything like this reported.

Thanks,
Bruno

Message 2 in thread

Has no one seen this behavior?  Should I report it as a bug?


On Feb 21, 2007, at 4:08 PM, Bruno Trindade wrote:

> Hey all.  Here's a strange, but hopefully simple, one.  I'm using  
> QMessageBox::Information and QMessageBox::Warning on Mac OS X.  The  
> icon that is showing up in the dialogs is the generic console app  
> icon for OS X.  On one occasion, it was the generic GUI application  
> icon, but I cannot reproduce it now.
>
> Here's an example of how I'm calling the method ("this" is an  
> instance of QMainWindow):
>
> QMessageBox::information(this, "Title",
>                          "Body",
>                          QMessageBox::Ok);
>
> I searched the qt-interest archives as well as the bug tracker, but  
> didn't see anything like this reported.
>
> Thanks,
> Bruno





Message 3 in thread

> Has no one seen this behavior?  Should I report it as a bug?

It would help if this could be somehow reproduced.

--
 [ signature omitted ] 

Message 4 in thread

To reproduce in my environment, all that needs to be done is make  
this call:

MessageBox::information(this, "Title",
                          "Body",
                          QMessageBox::Ok);


Presto - wrong icons.  My company is going to buy a license to the  
commercial version, so maybe it will just go away when I redo my SDK  
install.

Thanks,
Bruno


On Feb 22, 2007, at 6:11 PM, Dimitri wrote:

>> Has no one seen this behavior?  Should I report it as a bug?
>
> It would help if this could be somehow reproduced.
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/



Message 5 in thread

Hi Bruno,

> To reproduce in my environment, all that needs to be done is make this call:

Ah, I didn't read your post carefully:
	The icon that is showing up in the dialogs is the
	generic console app icon for OS X. On one occasion,
	it was the generic GUI application icon, but I
	cannot reproduce it now.
You can easily reproduce the first issue but cannot reproduce the second 
one - but both are wrong anyway.

Are you able to reproduce them with any of the Qt examples?
For example:
	examples/dialogs/standarddialogs

--
 [ signature omitted ] 

Message 6 in thread

Thanks for your response, Dimitri.

Yes - the standarddialogs example exhibits incorrect behavior for the  
QMessageBox::information(), QMessageBox::question(), and  
QMessageBox::warning(), QErrorMessage::showMessage() examples.  For  
all of the above, I get the generic GUI application icon (not the  
console app icon).  QMessageBox::critical() shows the yellow triangle  
with a white bang symbol, and also has the generic app icon overlaid  
on the lower right of the triangle (better than the other  
situations,  but still contradicts what the docs say should be showing).

Thanks,
Bruno


On Feb 26, 2007, at 3:33 PM, Dimitri wrote:

> Hi Bruno,
>
>> To reproduce in my environment, all that needs to be done is make  
>> this call:
>
> Ah, I didn't read your post carefully:
> 	The icon that is showing up in the dialogs is the
> 	generic console app icon for OS X. On one occasion,
> 	it was the generic GUI application icon, but I
> 	cannot reproduce it now.
> You can easily reproduce the first issue but cannot reproduce the  
> second one - but both are wrong anyway.
>
> Are you able to reproduce them with any of the Qt examples?
> For example:
> 	examples/dialogs/standarddialogs
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

Bruno Trindade
Señor Software Engineer
bruno@xxxxxxxxx