Not all png files work with sni-qt
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:/
I get messages like this:
Could not save icon as '/tmp/sni-
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-
video.png: PNG image data, 100 x 100, 8-bit/color RGBA, non-interlaced
alex@MaD-
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)
Changed in sni-qt: | |
status: | New → Confirmed |
status: | Confirmed → New |