Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there a way to use the windows version of the built-in icons in linux?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to use the windows version of the built-in icons in linux?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 135 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    james b-s
    wrote on 28 Apr 2025, 15:52 last edited by
    #1

    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:
    83c7433b-485a-4df6-9101-69b9bdcac71d-image.png

    Linux version:
    7d1771f7-7e31-472e-9e4f-7666a9ff926b-image.png

    J 1 Reply Last reply 28 Apr 2025, 20:35
    0
    • I Offline
      I Offline
      IgKh
      wrote on 29 Apr 2025, 13:13 last edited by
      #4

      @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.

      1 Reply Last reply
      2
      • J james b-s
        28 Apr 2025, 15:52

        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:
        83c7433b-485a-4df6-9101-69b9bdcac71d-image.png

        Linux version:
        7d1771f7-7e31-472e-9e4f-7666a9ff926b-image.png

        J Offline
        J Offline
        JoeCFD
        wrote on 28 Apr 2025, 20:35 last edited by
        #2

        @james-b-s copy the windows icons into your project and set them statically.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          james b-s
          wrote on 28 Apr 2025, 21:11 last edited by
          #3

          Does each icon exist as a file somewhere? I assumed they were stored in some binary that would make them hard to access

          1 Reply Last reply
          0
          • I Offline
            I Offline
            IgKh
            wrote on 29 Apr 2025, 13:13 last edited by
            #4

            @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.

            1 Reply Last reply
            2
            • J james b-s has marked this topic as solved on 29 Apr 2025, 13:40

            3/4

            28 Apr 2025, 21:11

            • Login

            • Login or register to search.
            3 out of 4
            • First post
              3/4
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved