Not all png files work with sni-qt

Bug #1021205 reported by Alex Solanos
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sni-qt
New
Undecided
Unassigned
sni-qt (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I build a qt application, not all 'png' files work with it. My bug is exactly the same as this: https://bugs.launchpad.net/sni-qt/+bug/912608
I get messages like this:
Could not save icon as '/tmp/sni-qt_server_22456-MTXUll/icons/hicolor/16x16/apps/server_22456_1fd07571a5278bdba6564f8b47480a18.png'
but I am *sure* that I have included all my png icons to my resources file, so this isn't the case (I've also included a compilable example!).

So, in my icons.qrc file, I have 2 png icons, the one works with the indicator while the other doesn't!
Both files are true png files, as the 'file' command reports:
alex@MaD-pc:~/Qt/traytest$ file video.png
video.png: PNG image data, 100 x 100, 8-bit/color RGBA, non-interlaced
alex@MaD-pc:~/Qt/traytest$ file error.png
error.png: PNG image data, 16 x 16, 8-bit/color RGBA, non-interlaced

I have attached an archive with the source code, which can be compiled as:
qmake *.pro
qmake
make

And then, when you execute the program and press the button, an icon with an exclamation mark will be shown in the indicator area. However, when you change the setIcon value of the QSystemTrayIcon to 'video.png' (which is also in the icons.qrc file), the indicator doesn't show himself. The setIcon call is being done in the constructor of MainWindow.

In case you cannot reproduce, I have also attached a recording of my desktop pointing out the steps that I used to reproduce.

The attachment all.zip contains both the source code and the video (ogv format)

Revision history for this message
Alex Solanos (hakermania) wrote :
Changed in sni-qt:
status: New → Confirmed
status: Confirmed → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.