Qt-interest Archive, January 2008
Grabbing Window Icon
Message 1 in thread
Hello all,
I am wondering if there is a Qt way to grab the icon of an arbitrary
window. I know you can use the SendMessage API function with a
WM_GETICON message and HWND (or GetClassLongPtr) on Windows, or the Xlib
XWMHints struct to get the icon pixmap from an X display surface on X
platforms... is there a nice cross-platform way to do this though?
It's not the end of the world if I have to branch out that section of
the code for multiple platforms, but it sure is ugly when you do that :)
Thanks in advance,
Stuart
--
[ signature omitted ]
Message 2 in thread
On mandag den 14. Januar 2008, Stuart Childs wrote:
> I am wondering if there is a Qt way to grab the icon of an arbitrary
> window.
Unfortunately not.
Qt.
--
[ signature omitted ]