Please help me, can't find problem solve...
I need get icon(image) of any file in windows. QFileIconProvider do this but i need extra big size like on screenshot. Please give me some code)))
Please help me, can't find problem solve...
I need get icon(image) of any file in windows. QFileIconProvider do this but i need extra big size like on screenshot. Please give me some code)))
You need to add the ICON to your project by resources and calling:
QWidget::setWindowIcon(QIcon(":/icon.ico"));
But if you want large Icon you need to read this :
http://doc.trolltech.com/4.5/appicon...con-on-windows
No need to yell
If the Qt class only gives you the "traditional" icons I would guess you need to use Windows (Vista+) specific code to extract the PNG-based 256x256 icon. The extraction of the resource should be standard MSDN fare. I don't know whether the icon is a standard PNG; if it is, Qt should be able to manipulate it just fine.
Ok i find winapi code what i need http://pogopixels.com/blog/getting-t...le-on-windows/ but i cant insert him into my app - many errors, please help!
What kind of errors? We cannot help without precise description of the errors.
It's nice to be important but it's more important to be nice.
Bookmarks