[Qt-interest] QX11EmbedContainer transparency and size bugs
Alex Williams
linuxfpga at gmail.com
Mon Aug 16 14:21:15 CEST 2010
I have additional details on tray icon crop.
There are systray.pro example in Qt SDK and I tested it also in my
environment. When icon size is 25x25 - everything is OK.
emb_cont->embedClient(win_id);
emb_cont->setFixedSize(16, 16);
XResizeWindow(QX11Info::display(), win_id, emb_cont->width(),
emb_cont->height());
After this systray.pro example also shows cropped icon in tray...
1) why Qt can't show correct tray icon if it's less than 25 pixels? In
windows xp it's OK when tray icon 16x16
2) is that limitation of X11?
P.S.
Tray icons background problem solved... I'm using Antico project as
base and I just removed
"emb_cont->setPalette(QPalette(QPalette::Light));" line to fix...
> 2) all Qt programs in X11 with _resized_ QX11EmbedContainer is cropped (16x16)
> note, that on my screenshot - gajim (GTK program) have successfully
> scaled icon, but Qt programs such as vlc and qutim have cropped icon
> How to solve this problem?
>
> link to screenshot:
> http://img444.imageshack.us/img444/3894/x11bug.png
More information about the Qt-interest-old
mailing list