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 145 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 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

    JoeCFDJ 1 Reply Last reply
    0
    • I Offline
      I Offline
      IgKh
      wrote on 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

        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

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on 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 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 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

            • Login

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