PDA

View Full Version : getting System icons



jay
10th March 2008, 04:47
Dear all,

This is my very first post here. Happy to do this.

I am getting 'My computer" icon using the following code.

QIcon icon = ApplicationStyle->standardIcon ( QStyle::SP_ComputerIcon )


my Question is,
I didn't find a way to get 'My Documents" icon.
am i missing something?

Thanks in advance.

Regards,
jay.

momesana
10th March 2008, 10:09
Well you could use QStyle::SP_DirIcon or QStyle::SP_DirHomeIcon. The function standardIcon() only provides a selection of icons. It does not have a standard icon for every scenario.