Is there a way to use the windows version of the built-in icons in linux?
-
wrote 20 days ago last edited by
-
wrote 20 days ago last edited by
@james-b-s You mean the stuff that's get returned from
QStyle::standardIcon
?It is platform theme specific. From a cursory look in the source code, the icons on Windows are collected from various Win32 APIs, but most of them seem to be in the resource fork of
shell32.dll
(and other system DLLs). I guess you could extract them from there, but I doubt the Windows EULA allows re-distribution of them.If consistency between platforms is important, best bet is to choose a suitable licensed open source (or commercial) icon set and bundle it with your application.
-
The qt built-in icons are quite different between windows and linux. Some of the windows icons are suitable for our purpose while the linux icons are not. Is there a way to get a linux build to use the windows versions of the built-in icons?
Windows version:
Linux version:
wrote 20 days ago last edited by@james-b-s copy the windows icons into your project and set them statically.
-
wrote 20 days ago last edited by
Does each icon exist as a file somewhere? I assumed they were stored in some binary that would make them hard to access
-
wrote 20 days ago last edited by
@james-b-s You mean the stuff that's get returned from
QStyle::standardIcon
?It is platform theme specific. From a cursory look in the source code, the icons on Windows are collected from various Win32 APIs, but most of them seem to be in the resource fork of
shell32.dll
(and other system DLLs). I guess you could extract them from there, but I doubt the Windows EULA allows re-distribution of them.If consistency between platforms is important, best bet is to choose a suitable licensed open source (or commercial) icon set and bundle it with your application.
-
3/4