[Qt-interest] QMessageBox icon don't show

Diego Schulz dschulz at gmail.com
Tue Apr 7 17:21:26 CEST 2009


On Tue, Apr 7, 2009 at 11:04 AM,  <Oliver.Knoll at comit.ch> wrote:
> Diego Schulz wrote on Tuesday, April 07, 2009 4:54 PM:
>
>> On Tue, Apr 7, 2009 at 10:29 AM, Marcelo Estanislau Geyer
>> <estanisgeyer at hotmail.com> wrote:
>>> I don't see icon using this simple code. ...
>> ...
>> I think it's a common packaging problem in some linux distros. IIRC I
>> have had this problem in Ubuntu 8.10.
>
> For a moment I also thought it could be related to the Window Manager "style" being used: maybe Qt is so clever to figure out the standard icon, as set by the (KDE) theme being selected, and if the theme defines "no icon"...

This sounds reasonable, now I'm inclined to believe that the problem
is not in the packaging but in KDE 4 Oxygen style  :)

>
> But I agree that this is a very vague shot into the blue - your "package issue" explanation sounds more reasonable ;)
>
> Also, (to the OP), try to compile Qt from source, as downloaded from http://www.trolltech.com, as to rule out such problems. Make sure your compiled Qt does not interfere with the one installed by Fedora: set PATHs etc. accordingly (uninstalling the Fedora Qt package is probably NOT such a good idea though).
>

Good idea.  I'd also suggest changing the style for Qt apps with
qtconfig application (included with Qt installation) to force the use
of a more 'standard'  style, and then see if the icons shows up.

diego




More information about the Qt-interest-old mailing list